| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // | 100 // |
| 101 // More than one hold can be invoked and each hold must be cancelled by a | 101 // More than one hold can be invoked and each hold must be cancelled by a |
| 102 // release before we resume normal operation. | 102 // release before we resume normal operation. |
| 103 void HoldPointerMoves(); | 103 void HoldPointerMoves(); |
| 104 void ReleasePointerMoves(); | 104 void ReleasePointerMoves(); |
| 105 | 105 |
| 106 // Gets the last location seen in a mouse event in this root window's | 106 // Gets the last location seen in a mouse event in this root window's |
| 107 // coordinates. This may return a point outside the root window's bounds. | 107 // coordinates. This may return a point outside the root window's bounds. |
| 108 gfx::Point GetLastMouseLocationInRoot() const; | 108 gfx::Point GetLastMouseLocationInRoot() const; |
| 109 | 109 |
| 110 void OnHostLostMouseGrab(); |
| 110 void OnCursorMovedToRootLocation(const gfx::Point& root_location); | 111 void OnCursorMovedToRootLocation(const gfx::Point& root_location); |
| 111 | 112 |
| 112 // TODO(beng): This is only needed because this cleanup needs to happen after | 113 // TODO(beng): This is only needed because this cleanup needs to happen after |
| 113 // all other observers are notified of OnWindowDestroying() but | 114 // all other observers are notified of OnWindowDestroying() but |
| 114 // before OnWindowDestroyed() is sent (i.e. while the window | 115 // before OnWindowDestroyed() is sent (i.e. while the window |
| 115 // hierarchy is still intact). This didn't seem worth adding a | 116 // hierarchy is still intact). This didn't seem worth adding a |
| 116 // generic notification for as only this class needs to implement | 117 // generic notification for as only this class needs to implement |
| 117 // it. I would however like to find a way to do this via an | 118 // it. I would however like to find a way to do this via an |
| 118 // observer. | 119 // observer. |
| 119 void OnPostNotifiedWindowDestroying(Window* window); | 120 void OnPostNotifiedWindowDestroying(Window* window); |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 | 262 |
| 262 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. | 263 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. |
| 263 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; | 264 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; |
| 264 | 265 |
| 265 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); | 266 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); |
| 266 }; | 267 }; |
| 267 | 268 |
| 268 } // namespace aura | 269 } // namespace aura |
| 269 | 270 |
| 270 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ | 271 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
| OLD | NEW |