| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 // Initializes the root window. | 120 // Initializes the root window. |
| 121 void Init(); | 121 void Init(); |
| 122 | 122 |
| 123 // Shows the root window host. | 123 // Shows the root window host. |
| 124 void ShowRootWindow(); | 124 void ShowRootWindow(); |
| 125 | 125 |
| 126 // Hides the root window host. | 126 // Hides the root window host. |
| 127 void HideRootWindow(); | 127 void HideRootWindow(); |
| 128 | 128 |
| 129 // Stop listening events in preparation for shutdown. |
| 130 void PrepareForShutdown(); |
| 131 |
| 129 RootWindowHostDelegate* AsRootWindowHostDelegate(); | 132 RootWindowHostDelegate* AsRootWindowHostDelegate(); |
| 130 | 133 |
| 131 // Sets the size of the root window. | 134 // Sets the size of the root window. |
| 132 void SetHostSize(const gfx::Size& size_in_pixel); | 135 void SetHostSize(const gfx::Size& size_in_pixel); |
| 133 gfx::Size GetHostSize() const; | 136 gfx::Size GetHostSize() const; |
| 134 | 137 |
| 135 // Sets the bounds of the host window. | 138 // Sets the bounds of the host window. |
| 136 void SetHostBounds(const gfx::Rect& size_in_pixel); | 139 void SetHostBounds(const gfx::Rect& size_in_pixel); |
| 137 | 140 |
| 138 // Returns where the RootWindow is on screen. | 141 // Returns where the RootWindow is on screen. |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 | 420 |
| 418 CompositorLock* compositor_lock_; | 421 CompositorLock* compositor_lock_; |
| 419 bool draw_on_compositor_unlock_; | 422 bool draw_on_compositor_unlock_; |
| 420 | 423 |
| 421 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 424 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
| 422 }; | 425 }; |
| 423 | 426 |
| 424 } // namespace aura | 427 } // namespace aura |
| 425 | 428 |
| 426 #endif // UI_AURA_ROOT_WINDOW_H_ | 429 #endif // UI_AURA_ROOT_WINDOW_H_ |
| OLD | NEW |