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/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
66 static bool hide_host_cursor() { | 66 static bool hide_host_cursor() { |
67 return hide_host_cursor_; | 67 return hide_host_cursor_; |
68 } | 68 } |
69 | 69 |
70 ui::Compositor* compositor() { return compositor_.get(); } | 70 ui::Compositor* compositor() { return compositor_.get(); } |
71 gfx::Point last_mouse_location() const { return last_mouse_location_; } | 71 gfx::Point last_mouse_location() const { return last_mouse_location_; } |
72 gfx::NativeCursor last_cursor() const { return last_cursor_; } | 72 gfx::NativeCursor last_cursor() const { return last_cursor_; } |
73 bool cursor_shown() const { return cursor_shown_; } | 73 bool cursor_shown() const { return cursor_shown_; } |
74 Window* mouse_pressed_handler() { return mouse_pressed_handler_; } | 74 Window* mouse_pressed_handler() { return mouse_pressed_handler_; } |
75 Window* capture_window() { return capture_window_; } | 75 Window* capture_window() { return capture_window_; } |
76 ScreenAura* screen() { return screen_; } | 76 const ScreenAura* screen() { return screen_; } |
77 | 77 |
78 // Shows the root window host. | 78 // Shows the root window host. |
79 void ShowRootWindow(); | 79 void ShowRootWindow(); |
80 | 80 |
81 // Sets the size of the root window. | 81 // Sets the size of the root window. |
82 void SetHostSize(const gfx::Size& size); | 82 void SetHostSize(const gfx::Size& size); |
83 gfx::Size GetHostSize() const; | 83 gfx::Size GetHostSize() const; |
84 | 84 |
85 // Sets the screen's work area insets. | |
sky
2012/03/01 01:43:19
Add that this notifies observers too.
jennyz
2012/03/01 18:27:45
Done.
| |
86 void SetScreenWorkAreaInsets(const gfx::Insets& insets); | |
87 | |
85 // Sets the currently-displayed cursor. If the cursor was previously hidden | 88 // Sets the currently-displayed cursor. If the cursor was previously hidden |
86 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is | 89 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is |
87 // called, at which point the cursor that was last set via SetCursor() will be | 90 // called, at which point the cursor that was last set via SetCursor() will be |
88 // used. | 91 // used. |
89 void SetCursor(gfx::NativeCursor cursor); | 92 void SetCursor(gfx::NativeCursor cursor); |
90 | 93 |
91 // Shows or hides the cursor. | 94 // Shows or hides the cursor. |
92 void ShowCursor(bool show); | 95 void ShowCursor(bool show); |
93 | 96 |
94 // Moves the cursor to the specified location relative to the root window. | 97 // Moves the cursor to the specified location relative to the root window. |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
310 bool synthesize_mouse_move_; | 313 bool synthesize_mouse_move_; |
311 bool waiting_on_compositing_end_; | 314 bool waiting_on_compositing_end_; |
312 bool draw_on_compositing_end_; | 315 bool draw_on_compositing_end_; |
313 | 316 |
314 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 317 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
315 }; | 318 }; |
316 | 319 |
317 } // namespace aura | 320 } // namespace aura |
318 | 321 |
319 #endif // UI_AURA_ROOT_WINDOW_H_ | 322 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |