OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DESKTOP_H_ | 5 #ifndef UI_AURA_DESKTOP_H_ |
6 #define UI_AURA_DESKTOP_H_ | 6 #define UI_AURA_DESKTOP_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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
62 Window* active_window() { return active_window_; } | 62 Window* active_window() { return active_window_; } |
63 Window* mouse_pressed_handler() { return mouse_pressed_handler_; } | 63 Window* mouse_pressed_handler() { return mouse_pressed_handler_; } |
64 Window* capture_window() { return capture_window_; } | 64 Window* capture_window() { return capture_window_; } |
65 ScreenAura* screen() { return screen_; } | 65 ScreenAura* screen() { return screen_; } |
66 | 66 |
67 void SetDelegate(DesktopDelegate* delegate); | 67 void SetDelegate(DesktopDelegate* delegate); |
68 | 68 |
69 // Shows the desktop host. | 69 // Shows the desktop host. |
70 void ShowDesktop(); | 70 void ShowDesktop(); |
71 | 71 |
72 // Sets the size of the desktop. | 72 // Sets the size of the desktop. Note that in some implementations (i.e. |
73 // X11), resizing happens asynchronously, so a size passed to SetHostSize() | |
74 // may not be immediately reflected in GetHostSize(). | |
sadrul
2011/10/22 18:53:04
I dislike this part of the change.
I confirmed th
Daniel Erat
2011/10/23 04:02:55
I'm in favor of waiting for the ConfigureNotify be
| |
73 void SetHostSize(const gfx::Size& size); | 75 void SetHostSize(const gfx::Size& size); |
74 gfx::Size GetHostSize() const; | 76 gfx::Size GetHostSize() const; |
75 | 77 |
76 // Shows the specified cursor. | 78 // Shows the specified cursor. |
77 void SetCursor(gfx::NativeCursor cursor); | 79 void SetCursor(gfx::NativeCursor cursor); |
78 | 80 |
79 // Shows the desktop host and runs an event loop for it. | 81 // Shows the desktop host and runs an event loop for it. |
80 void Run(); | 82 void Run(); |
81 | 83 |
82 // Draws the necessary set of windows. | 84 // Draws the necessary set of windows. |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
194 Window* mouse_moved_handler_; | 196 Window* mouse_moved_handler_; |
195 Window* focused_window_; | 197 Window* focused_window_; |
196 Window* touch_event_handler_; | 198 Window* touch_event_handler_; |
197 | 199 |
198 DISALLOW_COPY_AND_ASSIGN(Desktop); | 200 DISALLOW_COPY_AND_ASSIGN(Desktop); |
199 }; | 201 }; |
200 | 202 |
201 } // namespace aura | 203 } // namespace aura |
202 | 204 |
203 #endif // UI_AURA_DESKTOP_H_ | 205 #endif // UI_AURA_DESKTOP_H_ |
OLD | NEW |