| 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 <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // Dispatches the specified event type (intended for enter/exit) to the | 147 // Dispatches the specified event type (intended for enter/exit) to the |
| 148 // |mouse_moved_handler_|. | 148 // |mouse_moved_handler_|. |
| 149 // The event's location will be converted from |target|coordinate system to | 149 // The event's location will be converted from |target|coordinate system to |
| 150 // |mouse_moved_handler_| coordinate system. | 150 // |mouse_moved_handler_| coordinate system. |
| 151 ui::EventDispatchDetails DispatchMouseEnterOrExit(Window* target, | 151 ui::EventDispatchDetails DispatchMouseEnterOrExit(Window* target, |
| 152 const ui::MouseEvent& event, | 152 const ui::MouseEvent& event, |
| 153 ui::EventType type) | 153 ui::EventType type) |
| 154 WARN_UNUSED_RESULT; | 154 WARN_UNUSED_RESULT; |
| 155 ui::EventDispatchDetails ProcessGestures( | 155 ui::EventDispatchDetails ProcessGestures( |
| 156 Window* target, | 156 Window* target, |
| 157 ui::GestureRecognizer::Gestures* gestures) WARN_UNUSED_RESULT; | 157 ui::GestureRecognizer::Gestures gestures) WARN_UNUSED_RESULT; |
| 158 | 158 |
| 159 // Called when a window becomes invisible, either by being removed | 159 // Called when a window becomes invisible, either by being removed |
| 160 // from root window hierarchy, via SetVisible(false) or being destroyed. | 160 // from root window hierarchy, via SetVisible(false) or being destroyed. |
| 161 // |reason| specifies what triggered the hiding. Note that becoming invisible | 161 // |reason| specifies what triggered the hiding. Note that becoming invisible |
| 162 // will cause a window to lose capture and some windows may destroy themselves | 162 // will cause a window to lose capture and some windows may destroy themselves |
| 163 // on capture (like DragDropTracker). | 163 // on capture (like DragDropTracker). |
| 164 void OnWindowHidden(Window* invisible, WindowHiddenReason reason); | 164 void OnWindowHidden(Window* invisible, WindowHiddenReason reason); |
| 165 | 165 |
| 166 bool is_dispatched_held_event(const ui::Event& event) const; | 166 bool is_dispatched_held_event(const ui::Event& event) const; |
| 167 | 167 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 263 |
| 264 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. | 264 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. |
| 265 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; | 265 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; |
| 266 | 266 |
| 267 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); | 267 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); |
| 268 }; | 268 }; |
| 269 | 269 |
| 270 } // namespace aura | 270 } // namespace aura |
| 271 | 271 |
| 272 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ | 272 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
| OLD | NEW |