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_WINDOW_H_ | 5 #ifndef AURA_WINDOW_H_ |
6 #define AURA_WINDOW_H_ | 6 #define AURA_WINDOW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "aura/aura_export.h" |
11 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "ui/gfx/compositor/layer_delegate.h" | 14 #include "ui/gfx/compositor/layer_delegate.h" |
14 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
15 | 16 |
16 class SkCanvas; | 17 class SkCanvas; |
17 | 18 |
18 namespace ui { | 19 namespace ui { |
19 class Compositor; | 20 class Compositor; |
20 class Layer; | 21 class Layer; |
21 } | 22 } |
22 | 23 |
23 namespace aura { | 24 namespace aura { |
24 | 25 |
25 class Desktop; | 26 class Desktop; |
26 class KeyEvent; | 27 class KeyEvent; |
27 class MouseEvent; | 28 class MouseEvent; |
28 class WindowDelegate; | 29 class WindowDelegate; |
29 class WindowManager; | 30 class WindowManager; |
30 | 31 |
31 namespace internal { | 32 namespace internal { |
32 class FocusManager; | 33 class FocusManager; |
33 } | 34 } |
34 | 35 |
35 // Aura window implementation. Interesting events are sent to the | 36 // Aura window implementation. Interesting events are sent to the |
36 // WindowDelegate. | 37 // WindowDelegate. |
37 // TODO(beng): resolve ownership. | 38 // TODO(beng): resolve ownership. |
38 class Window : public ui::LayerDelegate { | 39 class AURA_EXPORT Window : public ui::LayerDelegate { |
39 public: | 40 public: |
40 enum Visibility { | 41 enum Visibility { |
41 // Don't display the window onscreen and don't let it receive mouse | 42 // Don't display the window onscreen and don't let it receive mouse |
42 // events. This is the default. | 43 // events. This is the default. |
43 VISIBILITY_HIDDEN = 1, | 44 VISIBILITY_HIDDEN = 1, |
44 | 45 |
45 // Display the window and let it receive mouse events. | 46 // Display the window and let it receive mouse events. |
46 VISIBILITY_SHOWN = 2, | 47 VISIBILITY_SHOWN = 2, |
47 | 48 |
48 // Display the window but prevent it from receiving mouse events. | 49 // Display the window but prevent it from receiving mouse events. |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 scoped_ptr<WindowManager> window_manager_; | 163 scoped_ptr<WindowManager> window_manager_; |
163 | 164 |
164 void* user_data_; | 165 void* user_data_; |
165 | 166 |
166 DISALLOW_COPY_AND_ASSIGN(Window); | 167 DISALLOW_COPY_AND_ASSIGN(Window); |
167 }; | 168 }; |
168 | 169 |
169 } // namespace aura | 170 } // namespace aura |
170 | 171 |
171 #endif // AURA_WINDOW_H_ | 172 #endif // AURA_WINDOW_H_ |
OLD | NEW |