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 ASH_WM_WINDOW_PROPERTIES_H_ | 5 #ifndef ASH_WM_WINDOW_PROPERTIES_H_ |
6 #define ASH_WM_WINDOW_PROPERTIES_H_ | 6 #define ASH_WM_WINDOW_PROPERTIES_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ui/base/ui_base_types.h" | 9 #include "ui/base/ui_base_types.h" |
10 | 10 |
11 namespace aura { | 11 namespace aura { |
12 class Window; | 12 class Window; |
13 | 13 |
14 template<typename T> | 14 template<typename T> |
15 struct WindowProperty; | 15 struct WindowProperty; |
16 } | 16 } |
17 | 17 |
18 namespace ash { | 18 namespace ash { |
19 namespace wm { | 19 namespace wm { |
20 class WindowState; | 20 class WindowState; |
21 } // namespace wm | 21 } // namespace wm |
22 namespace internal { | |
23 | 22 |
24 // Shell-specific window property keys. | 23 // Shell-specific window property keys. |
25 | 24 |
26 // Alphabetical sort. | 25 // Alphabetical sort. |
27 | 26 |
28 // If this is set to true, the window stays in the same root window | 27 // If this is set to true, the window stays in the same root window |
29 // even if the bounds outside of its root window is set. | 28 // even if the bounds outside of its root window is set. |
30 // This is exported as it's used in the tests. | 29 // This is exported as it's used in the tests. |
31 ASH_EXPORT extern const aura::WindowProperty<bool>* const | 30 ASH_EXPORT extern const aura::WindowProperty<bool>* const |
32 kStayInSameRootWindowKey; | 31 kStayInSameRootWindowKey; |
33 | 32 |
34 // Property to tell if the container uses the screen coordinates. | 33 // Property to tell if the container uses the screen coordinates. |
35 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey; | 34 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey; |
36 | 35 |
37 // A property key to store WindowState in the window. The window state | 36 // A property key to store WindowState in the window. The window state |
38 // is owned by the window. | 37 // is owned by the window. |
39 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey; | 38 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey; |
40 | 39 |
41 // Alphabetical sort. | 40 // Alphabetical sort. |
42 | 41 |
43 } // namespace internal | |
44 } // namespace ash | 42 } // namespace ash |
45 | 43 |
46 #endif // ASH_WM_WINDOW_PROPERTIES_H_ | 44 #endif // ASH_WM_WINDOW_PROPERTIES_H_ |
OLD | NEW |