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 UI_WM_CORE_COMPOUND_EVENT_FILTER_H_ | 5 #ifndef UI_WM_CORE_COMPOUND_EVENT_FILTER_H_ |
6 #define UI_WM_CORE_COMPOUND_EVENT_FILTER_H_ | 6 #define UI_WM_CORE_COMPOUND_EVENT_FILTER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "ui/events/event.h" | 10 #include "ui/events/event.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void SetCursorVisibilityOnEvent(aura::Window* target, | 66 void SetCursorVisibilityOnEvent(aura::Window* target, |
67 ui::Event* event, | 67 ui::Event* event, |
68 bool show); | 68 bool show); |
69 | 69 |
70 // Enables or disables mouse events if the event is not synthesized. | 70 // Enables or disables mouse events if the event is not synthesized. |
71 void SetMouseEventsEnableStateOnEvent(aura::Window* target, | 71 void SetMouseEventsEnableStateOnEvent(aura::Window* target, |
72 ui::Event* event, | 72 ui::Event* event, |
73 bool enable); | 73 bool enable); |
74 | 74 |
75 // Overridden from ui::EventHandler: | 75 // Overridden from ui::EventHandler: |
76 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 76 virtual void OnKeyEvent(ui::KeyEvent* event) override; |
77 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 77 virtual void OnMouseEvent(ui::MouseEvent* event) override; |
78 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; | 78 virtual void OnScrollEvent(ui::ScrollEvent* event) override; |
79 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 79 virtual void OnTouchEvent(ui::TouchEvent* event) override; |
80 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 80 virtual void OnGestureEvent(ui::GestureEvent* event) override; |
81 | 81 |
82 // Additional pre-target event handlers. | 82 // Additional pre-target event handlers. |
83 ObserverList<ui::EventHandler, true> handlers_; | 83 ObserverList<ui::EventHandler, true> handlers_; |
84 | 84 |
85 // True if the cursur was hidden by the filter. | 85 // True if the cursur was hidden by the filter. |
86 bool cursor_hidden_by_filter_; | 86 bool cursor_hidden_by_filter_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(CompoundEventFilter); | 88 DISALLOW_COPY_AND_ASSIGN(CompoundEventFilter); |
89 }; | 89 }; |
90 | 90 |
91 } // namespace wm | 91 } // namespace wm |
92 | 92 |
93 #endif // UI_WM_CORE_COMPOUND_EVENT_FILTER_H_ | 93 #endif // UI_WM_CORE_COMPOUND_EVENT_FILTER_H_ |
OLD | NEW |