Chromium Code Reviews| 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_AURA_ROOT_WINDOW_H_ | 5 #ifndef UI_AURA_ROOT_WINDOW_H_ |
| 6 #define UI_AURA_ROOT_WINDOW_H_ | 6 #define UI_AURA_ROOT_WINDOW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 129 | 129 |
| 130 // Moves the cursor to the specified location relative to the root window. | 130 // Moves the cursor to the specified location relative to the root window. |
| 131 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; | 131 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
| 132 | 132 |
| 133 // Moves the cursor to the |host_location| given in host coordinates. | 133 // Moves the cursor to the |host_location| given in host coordinates. |
| 134 void MoveCursorToHostLocation(const gfx::Point& host_location); | 134 void MoveCursorToHostLocation(const gfx::Point& host_location); |
| 135 | 135 |
| 136 // Clips the cursor movement to the root_window. | 136 // Clips the cursor movement to the root_window. |
| 137 bool ConfineCursorToWindow(); | 137 bool ConfineCursorToWindow(); |
| 138 | 138 |
| 139 // Restores the cursor movement beyond the root window. | |
| 140 void UnConfineCursor(); | |
|
sky
2013/10/30 22:02:53
UnconfigCursor.
How did the old code unconfine?
ananta
2013/10/30 22:11:41
The only consumer of ConfineCursorToWindow is the
| |
| 141 | |
| 139 // Draw the damage_rect. | 142 // Draw the damage_rect. |
| 140 void ScheduleRedrawRect(const gfx::Rect& damage_rect); | 143 void ScheduleRedrawRect(const gfx::Rect& damage_rect); |
| 141 | 144 |
| 142 // Returns a target window for the given gesture event. | 145 // Returns a target window for the given gesture event. |
| 143 Window* GetGestureTarget(ui::GestureEvent* event); | 146 Window* GetGestureTarget(ui::GestureEvent* event); |
| 144 | 147 |
| 145 // Handles a gesture event. Returns true if handled. Unlike the other | 148 // Handles a gesture event. Returns true if handled. Unlike the other |
| 146 // event-dispatching function (e.g. for touch/mouse/keyboard events), gesture | 149 // event-dispatching function (e.g. for touch/mouse/keyboard events), gesture |
| 147 // events are dispatched from GestureRecognizer instead of RootWindowHost. | 150 // events are dispatched from GestureRecognizer instead of RootWindowHost. |
| 148 bool DispatchGestureEvent(ui::GestureEvent* event); | 151 bool DispatchGestureEvent(ui::GestureEvent* event); |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 409 base::WeakPtrFactory<RootWindow> held_event_factory_; | 412 base::WeakPtrFactory<RootWindow> held_event_factory_; |
| 410 | 413 |
| 411 base::WeakPtrFactory<RootWindow> repostable_event_factory_; | 414 base::WeakPtrFactory<RootWindow> repostable_event_factory_; |
| 412 | 415 |
| 413 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 416 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
| 414 }; | 417 }; |
| 415 | 418 |
| 416 } // namespace aura | 419 } // namespace aura |
| 417 | 420 |
| 418 #endif // UI_AURA_ROOT_WINDOW_H_ | 421 #endif // UI_AURA_ROOT_WINDOW_H_ |
| OLD | NEW |