OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_WM_SYSTEM_MODAL_CONTAINER_EVENT_FILTER_H_ | 5 #ifndef ASH_WM_SYSTEM_MODAL_CONTAINER_EVENT_FILTER_H_ |
6 #define ASH_WM_SYSTEM_MODAL_CONTAINER_EVENT_FILTER_H_ | 6 #define ASH_WM_SYSTEM_MODAL_CONTAINER_EVENT_FILTER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "ui/events/event_handler.h" | 11 #include "ui/events/event_handler.h" |
12 | 12 |
13 namespace ash { | 13 namespace ash { |
14 | 14 |
15 class SystemModalContainerEventFilterDelegate; | 15 class SystemModalContainerEventFilterDelegate; |
16 | 16 |
17 class ASH_EXPORT SystemModalContainerEventFilter : public ui::EventHandler { | 17 class ASH_EXPORT SystemModalContainerEventFilter : public ui::EventHandler { |
18 public: | 18 public: |
19 explicit SystemModalContainerEventFilter( | 19 explicit SystemModalContainerEventFilter( |
20 SystemModalContainerEventFilterDelegate* delegate); | 20 SystemModalContainerEventFilterDelegate* delegate); |
21 virtual ~SystemModalContainerEventFilter(); | 21 virtual ~SystemModalContainerEventFilter(); |
22 | 22 |
23 // Overridden from ui::EventHandler: | 23 // Overridden from ui::EventHandler: |
24 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 24 virtual void OnKeyEvent(ui::KeyEvent* event) override; |
25 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 25 virtual void OnMouseEvent(ui::MouseEvent* event) override; |
26 | 26 |
27 private: | 27 private: |
28 SystemModalContainerEventFilterDelegate* delegate_; | 28 SystemModalContainerEventFilterDelegate* delegate_; |
29 | 29 |
30 DISALLOW_COPY_AND_ASSIGN(SystemModalContainerEventFilter); | 30 DISALLOW_COPY_AND_ASSIGN(SystemModalContainerEventFilter); |
31 }; | 31 }; |
32 | 32 |
33 } // namespace ash | 33 } // namespace ash |
34 | 34 |
35 #endif // ASH_WM_SYSTEM_MODAL_CONTAINER_EVENT_FILTER_H_ | 35 #endif // ASH_WM_SYSTEM_MODAL_CONTAINER_EVENT_FILTER_H_ |
OLD | NEW |