system_modal_container_event_filter.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ASH_WM_SYSTEM_MODAL_CONTAINER_EVENT_FILTER_H_
  5. #define ASH_WM_SYSTEM_MODAL_CONTAINER_EVENT_FILTER_H_
  6. #include "ash/ash_export.h"
  7. #include "base/compiler_specific.h"
  8. #include "ui/events/event_handler.h"
  9. namespace ash {
  10. class SystemModalContainerEventFilterDelegate;
  11. class ASH_EXPORT SystemModalContainerEventFilter : public ui::EventHandler {
  12. public:
  13. explicit SystemModalContainerEventFilter(
  14. SystemModalContainerEventFilterDelegate* delegate);
  15. SystemModalContainerEventFilter(const SystemModalContainerEventFilter&) =
  16. delete;
  17. SystemModalContainerEventFilter& operator=(
  18. const SystemModalContainerEventFilter&) = delete;
  19. ~SystemModalContainerEventFilter() override;
  20. // ui::EventHandler:
  21. void OnEvent(ui::Event* event) override;
  22. private:
  23. SystemModalContainerEventFilterDelegate* delegate_;
  24. };
  25. } // namespace ash
  26. #endif // ASH_WM_SYSTEM_MODAL_CONTAINER_EVENT_FILTER_H_