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 AURA_DESKTOP_H_ | 5 #ifndef AURA_DESKTOP_H_ |
6 #define AURA_DESKTOP_H_ | 6 #define AURA_DESKTOP_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "aura/root_window.h" | 9 #include "aura/root_window.h" |
| 10 #include "aura/aura_export.h" |
10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
12 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
13 | 14 |
14 namespace gfx { | 15 namespace gfx { |
15 class Size; | 16 class Size; |
16 } | 17 } |
17 | 18 |
18 namespace ui { | 19 namespace ui { |
19 class Compositor; | 20 class Compositor; |
20 } | 21 } |
21 | 22 |
22 namespace aura { | 23 namespace aura { |
23 | 24 |
24 class DesktopHost; | 25 class DesktopHost; |
25 class MouseEvent; | 26 class MouseEvent; |
26 | 27 |
27 // Desktop is responsible for hosting a set of windows. | 28 // Desktop is responsible for hosting a set of windows. |
28 class Desktop { | 29 class AURA_EXPORT Desktop { |
29 public: | 30 public: |
30 Desktop(); | 31 Desktop(); |
31 ~Desktop(); | 32 ~Desktop(); |
32 | 33 |
33 // Shows the desktop host. | 34 // Shows the desktop host. |
34 void Show(); | 35 void Show(); |
35 | 36 |
36 // Sets the size of the desktop. | 37 // Sets the size of the desktop. |
37 void SetSize(const gfx::Size& size); | 38 void SetSize(const gfx::Size& size); |
38 | 39 |
(...skipping 24 matching lines...) Expand all Loading... |
63 DesktopHost* host_; | 64 DesktopHost* host_; |
64 | 65 |
65 static Desktop* instance_; | 66 static Desktop* instance_; |
66 | 67 |
67 DISALLOW_COPY_AND_ASSIGN(Desktop); | 68 DISALLOW_COPY_AND_ASSIGN(Desktop); |
68 }; | 69 }; |
69 | 70 |
70 } // namespace aura | 71 } // namespace aura |
71 | 72 |
72 #endif // AURA_DESKTOP_H_ | 73 #endif // AURA_DESKTOP_H_ |
OLD | NEW |