| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 // Returns where the RootWindow is on screen. | 108 // Returns where the RootWindow is on screen. |
| 109 gfx::Point GetHostOrigin() const; | 109 gfx::Point GetHostOrigin() const; |
| 110 | 110 |
| 111 // Sets the currently-displayed cursor. If the cursor was previously hidden | 111 // Sets the currently-displayed cursor. If the cursor was previously hidden |
| 112 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is | 112 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is |
| 113 // called, at which point the cursor that was last set via SetCursor() will be | 113 // called, at which point the cursor that was last set via SetCursor() will be |
| 114 // used. | 114 // used. |
| 115 void SetCursor(gfx::NativeCursor cursor); | 115 void SetCursor(gfx::NativeCursor cursor); |
| 116 | 116 |
| 117 // Invoked when the cursor's visibility has changed. | 117 // Invoked when the cursor gets enabled or disabled. |
| 118 void OnCursorVisibilityChanged(bool visible); | 118 void OnCursorEnableStateChanged(bool enabled); |
| 119 | 119 |
| 120 // Moves the cursor to the specified location relative to the root window. | 120 // Moves the cursor to the specified location relative to the root window. |
| 121 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; | 121 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
| 122 | 122 |
| 123 // Clips the cursor movement to the root_window. | 123 // Clips the cursor movement to the root_window. |
| 124 bool ConfineCursorToWindow(); | 124 bool ConfineCursorToWindow(); |
| 125 | 125 |
| 126 // Draws the necessary set of windows. | 126 // Draws the necessary set of windows. |
| 127 void Draw(); | 127 void Draw(); |
| 128 | 128 |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 base::WeakPtrFactory<RootWindow> held_mouse_event_factory_; | 398 base::WeakPtrFactory<RootWindow> held_mouse_event_factory_; |
| 399 | 399 |
| 400 scoped_ptr<ui::ViewProp> prop_; | 400 scoped_ptr<ui::ViewProp> prop_; |
| 401 | 401 |
| 402 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 402 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
| 403 }; | 403 }; |
| 404 | 404 |
| 405 } // namespace aura | 405 } // namespace aura |
| 406 | 406 |
| 407 #endif // UI_AURA_ROOT_WINDOW_H_ | 407 #endif // UI_AURA_ROOT_WINDOW_H_ |
| OLD | NEW |