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 // Initializes the root window. | 108 // Initializes the root window. |
109 void Init(); | 109 void Init(); |
110 | 110 |
111 // Shows the root window host. | 111 // Shows the root window host. |
112 void ShowRootWindow(); | 112 void ShowRootWindow(); |
113 | 113 |
114 // Hides the root window host. | 114 // Hides the root window host. |
115 void HideRootWindow(); | 115 void HideRootWindow(); |
116 | 116 |
117 // Stop listening events in preparation for shutdown. | |
118 void StopListeningEvents(); | |
sky
2012/09/10 14:11:37
StopListeningForEvents here and on RootWindowHost.
oshima
2012/09/10 15:49:11
Renamed to PrepareForShutdown.
| |
119 | |
117 RootWindowHostDelegate* AsRootWindowHostDelegate(); | 120 RootWindowHostDelegate* AsRootWindowHostDelegate(); |
118 | 121 |
119 // Sets the size of the root window. | 122 // Sets the size of the root window. |
120 void SetHostSize(const gfx::Size& size_in_pixel); | 123 void SetHostSize(const gfx::Size& size_in_pixel); |
121 gfx::Size GetHostSize() const; | 124 gfx::Size GetHostSize() const; |
122 | 125 |
123 // Sets the bounds of the host window. | 126 // Sets the bounds of the host window. |
124 void SetHostBounds(const gfx::Rect& size_in_pixel); | 127 void SetHostBounds(const gfx::Rect& size_in_pixel); |
125 | 128 |
126 // Returns where the RootWindow is on screen. | 129 // Returns where the RootWindow is on screen. |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
405 | 408 |
406 CompositorLock* compositor_lock_; | 409 CompositorLock* compositor_lock_; |
407 bool draw_on_compositor_unlock_; | 410 bool draw_on_compositor_unlock_; |
408 | 411 |
409 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 412 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
410 }; | 413 }; |
411 | 414 |
412 } // namespace aura | 415 } // namespace aura |
413 | 416 |
414 #endif // UI_AURA_ROOT_WINDOW_H_ | 417 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |