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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // Sets the currently-displayed cursor. If the cursor was previously hidden | 119 // Sets the currently-displayed cursor. If the cursor was previously hidden |
120 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is | 120 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is |
121 // called, at which point the cursor that was last set via SetCursor() will be | 121 // called, at which point the cursor that was last set via SetCursor() will be |
122 // used. | 122 // used. |
123 void SetCursor(gfx::NativeCursor cursor); | 123 void SetCursor(gfx::NativeCursor cursor); |
124 | 124 |
125 // Shows or hides the cursor. | 125 // Shows or hides the cursor. |
126 void ShowCursor(bool show); | 126 void ShowCursor(bool show); |
127 | 127 |
128 // Moves the cursor to the specified location relative to the root window. | 128 // Moves the cursor to the specified location relative to the root window. |
129 void MoveCursorTo(const gfx::Point& location); | 129 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
130 | 130 |
131 // Clips the cursor movement to the root_window. | 131 // Clips the cursor movement to the root_window. |
132 bool ConfineCursorToWindow(); | 132 bool ConfineCursorToWindow(); |
133 | 133 |
134 // Draws the necessary set of windows. | 134 // Draws the necessary set of windows. |
135 void Draw(); | 135 void Draw(); |
136 | 136 |
137 // Draw the whole screen. | 137 // Draw the whole screen. |
138 void ScheduleFullDraw(); | 138 void ScheduleFullDraw(); |
139 | 139 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 | 394 |
395 CompositorLock* compositor_lock_; | 395 CompositorLock* compositor_lock_; |
396 bool draw_on_compositor_unlock_; | 396 bool draw_on_compositor_unlock_; |
397 | 397 |
398 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 398 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
399 }; | 399 }; |
400 | 400 |
401 } // namespace aura | 401 } // namespace aura |
402 | 402 |
403 #endif // UI_AURA_ROOT_WINDOW_H_ | 403 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |