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 11 matching lines...) Expand all Loading... |
22 | 22 |
23 class DesktopHost; | 23 class DesktopHost; |
24 class MouseEvent; | 24 class MouseEvent; |
25 | 25 |
26 // Desktop is responsible for hosting a set of windows. | 26 // Desktop is responsible for hosting a set of windows. |
27 class AURA_EXPORT Desktop : public ui::CompositorDelegate { | 27 class AURA_EXPORT Desktop : public ui::CompositorDelegate { |
28 public: | 28 public: |
29 Desktop(); | 29 Desktop(); |
30 ~Desktop(); | 30 ~Desktop(); |
31 | 31 |
| 32 // Initializes the desktop. |
| 33 void Init(); |
| 34 |
32 // Shows the desktop host. | 35 // Shows the desktop host. |
33 void Show(); | 36 void Show(); |
34 | 37 |
35 // Sets the size of the desktop. | 38 // Sets the size of the desktop. |
36 void SetSize(const gfx::Size& size); | 39 void SetSize(const gfx::Size& size); |
37 | 40 |
38 // Shows the desktop host and runs an event loop for it. | 41 // Shows the desktop host and runs an event loop for it. |
39 void Run(); | 42 void Run(); |
40 | 43 |
41 // Draws the necessary set of windows. | 44 // Draws the necessary set of windows. |
(...skipping 29 matching lines...) Expand all Loading... |
71 | 74 |
72 // Used to schedule painting. | 75 // Used to schedule painting. |
73 ScopedRunnableMethodFactory<Desktop> schedule_paint_; | 76 ScopedRunnableMethodFactory<Desktop> schedule_paint_; |
74 | 77 |
75 DISALLOW_COPY_AND_ASSIGN(Desktop); | 78 DISALLOW_COPY_AND_ASSIGN(Desktop); |
76 }; | 79 }; |
77 | 80 |
78 } // namespace aura | 81 } // namespace aura |
79 | 82 |
80 #endif // UI_AURA_DESKTOP_H_ | 83 #endif // UI_AURA_DESKTOP_H_ |
OLD | NEW |