| 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 // Calls SynthesizeMouseMove() if |window| is currently visible and contains | 231 // Calls SynthesizeMouseMove() if |window| is currently visible and contains |
| 232 // the mouse cursor. | 232 // the mouse cursor. |
| 233 void SynthesizeMouseMoveAfterChangeToWindow(Window* window); | 233 void SynthesizeMouseMoveAfterChangeToWindow(Window* window); |
| 234 | 234 |
| 235 ui::EventDispatchDetails PreDispatchLocatedEvent(Window* target, | 235 ui::EventDispatchDetails PreDispatchLocatedEvent(Window* target, |
| 236 ui::LocatedEvent* event); | 236 ui::LocatedEvent* event); |
| 237 ui::EventDispatchDetails PreDispatchMouseEvent(Window* target, | 237 ui::EventDispatchDetails PreDispatchMouseEvent(Window* target, |
| 238 ui::MouseEvent* event); | 238 ui::MouseEvent* event); |
| 239 ui::EventDispatchDetails PreDispatchTouchEvent(Window* target, | 239 ui::EventDispatchDetails PreDispatchTouchEvent(Window* target, |
| 240 ui::TouchEvent* event); | 240 ui::TouchEvent* event); |
| 241 ui::EventDispatchDetails PreDispatchKeyEvent(ui::KeyEvent* event); |
| 241 | 242 |
| 242 WindowTreeHost* host_; | 243 WindowTreeHost* host_; |
| 243 | 244 |
| 244 Window* mouse_pressed_handler_; | 245 Window* mouse_pressed_handler_; |
| 245 Window* mouse_moved_handler_; | 246 Window* mouse_moved_handler_; |
| 246 Window* event_dispatch_target_; | 247 Window* event_dispatch_target_; |
| 247 Window* old_dispatch_target_; | 248 Window* old_dispatch_target_; |
| 248 | 249 |
| 249 ui::FractionOfTimeWithoutUserInputRecorder | 250 ui::FractionOfTimeWithoutUserInputRecorder |
| 250 fraction_of_time_without_user_input_recorder_; | 251 fraction_of_time_without_user_input_recorder_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 275 | 276 |
| 276 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. | 277 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. |
| 277 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; | 278 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; |
| 278 | 279 |
| 279 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); | 280 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); |
| 280 }; | 281 }; |
| 281 | 282 |
| 282 } // namespace aura | 283 } // namespace aura |
| 283 | 284 |
| 284 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ | 285 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
| OLD | NEW |