OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_AURA_WINDOW_EVENT_DISPATCHER_H_ | 5 #ifndef UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
6 #define UI_AURA_WINDOW_EVENT_DISPATCHER_H_ | 6 #define UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // types (although the latter is currently a no-op). | 67 // types (although the latter is currently a no-op). |
68 void RepostEvent(const ui::LocatedEvent& event); | 68 void RepostEvent(const ui::LocatedEvent& event); |
69 | 69 |
70 // Invoked when the mouse events get enabled or disabled. | 70 // Invoked when the mouse events get enabled or disabled. |
71 void OnMouseEventsEnableStateChanged(bool enabled); | 71 void OnMouseEventsEnableStateChanged(bool enabled); |
72 | 72 |
73 void DispatchCancelModeEvent(); | 73 void DispatchCancelModeEvent(); |
74 | 74 |
75 // Dispatches a ui::ET_MOUSE_EXITED event at |point|. | 75 // Dispatches a ui::ET_MOUSE_EXITED event at |point|. |
76 // TODO(beng): needed only for WTH::OnCursorVisibilityChanged(). | 76 // TODO(beng): needed only for WTH::OnCursorVisibilityChanged(). |
77 void DispatchMouseExitAtPoint(const gfx::Point& point); | 77 ui::EventDispatchDetails DispatchMouseExitAtPoint( |
| 78 const gfx::Point& point) WARN_UNUSED_RESULT; |
78 | 79 |
79 // Gesture Recognition ------------------------------------------------------- | 80 // Gesture Recognition ------------------------------------------------------- |
80 | 81 |
81 // When a touch event is dispatched to a Window, it may want to process the | 82 // When a touch event is dispatched to a Window, it may want to process the |
82 // touch event asynchronously. In such cases, the window should consume the | 83 // touch event asynchronously. In such cases, the window should consume the |
83 // event during the event dispatch. Once the event is properly processed, the | 84 // event during the event dispatch. Once the event is properly processed, the |
84 // window should let the WindowEventDispatcher know about the result of the | 85 // window should let the WindowEventDispatcher know about the result of the |
85 // event processing, so that gesture events can be properly created and | 86 // event processing, so that gesture events can be properly created and |
86 // dispatched. | 87 // dispatched. |
87 void ProcessedTouchEvent(ui::TouchEvent* event, | 88 void ProcessedTouchEvent(ui::TouchEvent* event, |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 257 |
257 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. | 258 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. |
258 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; | 259 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; |
259 | 260 |
260 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); | 261 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); |
261 }; | 262 }; |
262 | 263 |
263 } // namespace aura | 264 } // namespace aura |
264 | 265 |
265 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ | 266 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
OLD | NEW |