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_WINDOW_H_ | 5 #ifndef UI_AURA_WINDOW_H_ |
6 #define UI_AURA_WINDOW_H_ | 6 #define UI_AURA_WINDOW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 class FocusManager; | 49 class FocusManager; |
50 } | 50 } |
51 | 51 |
52 // Aura window implementation. Interesting events are sent to the | 52 // Aura window implementation. Interesting events are sent to the |
53 // WindowDelegate. | 53 // WindowDelegate. |
54 // TODO(beng): resolve ownership. | 54 // TODO(beng): resolve ownership. |
55 class AURA_EXPORT Window : public ui::LayerDelegate { | 55 class AURA_EXPORT Window : public ui::LayerDelegate { |
56 public: | 56 public: |
57 typedef std::vector<Window*> Windows; | 57 typedef std::vector<Window*> Windows; |
58 | 58 |
59 // Property names. | |
60 static const char kPropAlwaysOnTop[]; // boolean, default is false. | |
oshima
2011/11/01 18:35:21
move this to ui/aura/aura_contents.h
xiyuan
2011/11/02 23:26:32
Done.
| |
61 | |
59 explicit Window(WindowDelegate* delegate); | 62 explicit Window(WindowDelegate* delegate); |
60 virtual ~Window(); | 63 virtual ~Window(); |
61 | 64 |
62 void Init(ui::Layer::LayerType layer_type); | 65 void Init(ui::Layer::LayerType layer_type); |
63 | 66 |
64 // A type is used to identify a class of Windows and customize behavior such | 67 // A type is used to identify a class of Windows and customize behavior such |
65 // as event handling and parenting. The value can be any of those in | 68 // as event handling and parenting. The value can be any of those in |
66 // window_types.h or a user defined value. | 69 // window_types.h or a user defined value. |
67 int type() const { return type_; } | 70 int type() const { return type_; } |
68 void SetType(int type); | 71 void SetType(int type); |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
355 // TODO(oshima): Consolidcate ViewProp and aura::window property | 358 // TODO(oshima): Consolidcate ViewProp and aura::window property |
356 // implementation. | 359 // implementation. |
357 std::map<const char*, ui::ViewProp*> prop_map_; | 360 std::map<const char*, ui::ViewProp*> prop_map_; |
358 | 361 |
359 DISALLOW_COPY_AND_ASSIGN(Window); | 362 DISALLOW_COPY_AND_ASSIGN(Window); |
360 }; | 363 }; |
361 | 364 |
362 } // namespace aura | 365 } // namespace aura |
363 | 366 |
364 #endif // UI_AURA_WINDOW_H_ | 367 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |