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 "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
100 // Shows the root window host. | 100 // Shows the root window host. |
101 void ShowRootWindow(); | 101 void ShowRootWindow(); |
102 | 102 |
103 // Sets the size of the root window. | 103 // Sets the size of the root window. |
104 void SetHostSize(const gfx::Size& size); | 104 void SetHostSize(const gfx::Size& size); |
105 gfx::Size GetHostSize() const; | 105 gfx::Size GetHostSize() const; |
106 | 106 |
107 // Sets the bounds of the host window. | 107 // Sets the bounds of the host window. |
108 void SetHostBounds(const gfx::Rect& size); | 108 void SetHostBounds(const gfx::Rect& size); |
109 | 109 |
110 // Returns where the RootWindow is on screen. | |
111 gfx::Point GetHostOrigin() const; | |
oshima
2012/04/24 23:04:15
can this be const gfx::Point& ?
Elliot Glaysher
2012/04/24 23:20:18
A quick attempt at returning const& here and in Ge
| |
112 | |
110 // Sets the currently-displayed cursor. If the cursor was previously hidden | 113 // Sets the currently-displayed cursor. If the cursor was previously hidden |
111 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is | 114 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is |
112 // called, at which point the cursor that was last set via SetCursor() will be | 115 // called, at which point the cursor that was last set via SetCursor() will be |
113 // used. | 116 // used. |
114 void SetCursor(gfx::NativeCursor cursor); | 117 void SetCursor(gfx::NativeCursor cursor); |
115 | 118 |
116 // Shows or hides the cursor. | 119 // Shows or hides the cursor. |
117 void ShowCursor(bool show); | 120 void ShowCursor(bool show); |
118 | 121 |
119 // Moves the cursor to the specified location relative to the root window. | 122 // Moves the cursor to the specified location relative to the root window. |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
400 bool draw_on_compositor_unlock_; | 403 bool draw_on_compositor_unlock_; |
401 | 404 |
402 int draw_trace_count_; | 405 int draw_trace_count_; |
403 | 406 |
404 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 407 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
405 }; | 408 }; |
406 | 409 |
407 } // namespace aura | 410 } // namespace aura |
408 | 411 |
409 #endif // UI_AURA_ROOT_WINDOW_H_ | 412 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |