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 "ash/wm/property_util.h" | 9 #include "ash/wm/property_util.h" |
10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
11 #include "ui/base/ui_base_types.h" | 11 #include "ui/base/ui_base_types.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 class Rect; | 14 class Rect; |
15 } | 15 } |
16 | 16 |
17 namespace ui_controls { | |
18 class UIControlsAura; | |
19 } | |
20 | |
21 namespace ash { | 17 namespace ash { |
22 class FramePainter; | 18 class FramePainter; |
23 namespace internal { | 19 namespace internal { |
24 class AlwaysOnTopController; | 20 class AlwaysOnTopController; |
25 class RootWindowController; | 21 class RootWindowController; |
26 | 22 |
27 // Shell-specific window property keys. | 23 // Shell-specific window property keys. |
28 | 24 |
29 // Alphabetical sort. | 25 // Alphabetical sort. |
30 | 26 |
(...skipping 26 matching lines...) Expand all Loading... |
57 // window. It is only available for root windows. | 53 // window. It is only available for root windows. |
58 ASH_EXPORT extern const aura::WindowProperty<ash::FramePainter*>* const | 54 ASH_EXPORT extern const aura::WindowProperty<ash::FramePainter*>* const |
59 kSoloWindowFramePainterKey; | 55 kSoloWindowFramePainterKey; |
60 | 56 |
61 // If this is set to true, the window stays in the same root window | 57 // If this is set to true, the window stays in the same root window |
62 // even if the bounds outside of its root window is set. | 58 // even if the bounds outside of its root window is set. |
63 // This is exported as it's used in the tests. | 59 // This is exported as it's used in the tests. |
64 ASH_EXPORT extern const aura::WindowProperty<bool>* const | 60 ASH_EXPORT extern const aura::WindowProperty<bool>* const |
65 kStayInSameRootWindowKey; | 61 kStayInSameRootWindowKey; |
66 | 62 |
67 // Used to store a ui_controls for each root window. | |
68 extern const aura::WindowProperty<ui_controls::UIControlsAura*>* const | |
69 kUIControlsKey; | |
70 | |
71 // A property key to remember if a windows position or size was changed by a | 63 // A property key to remember if a windows position or size was changed by a |
72 // user. | 64 // user. |
73 ASH_EXPORT extern const aura::WindowProperty<bool>* const | 65 ASH_EXPORT extern const aura::WindowProperty<bool>* const |
74 kUserChangedWindowPositionOrSizeKey; | 66 kUserChangedWindowPositionOrSizeKey; |
75 | 67 |
76 // A property to remember the window position which was set before the | 68 // A property to remember the window position which was set before the |
77 // auto window position manager changed the window bounds, so that it can get | 69 // auto window position manager changed the window bounds, so that it can get |
78 // restored when only this one window gets shown. | 70 // restored when only this one window gets shown. |
79 ASH_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const | 71 ASH_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const |
80 kPreAutoManagedWindowBoundsKey; | 72 kPreAutoManagedWindowBoundsKey; |
(...skipping 16 matching lines...) Expand all Loading... |
97 // True if the window is controlled by the workspace manager. | 89 // True if the window is controlled by the workspace manager. |
98 extern const aura::WindowProperty<bool>* const | 90 extern const aura::WindowProperty<bool>* const |
99 kWindowTrackedByWorkspaceKey; | 91 kWindowTrackedByWorkspaceKey; |
100 | 92 |
101 // Alphabetical sort. | 93 // Alphabetical sort. |
102 | 94 |
103 } // namespace internal | 95 } // namespace internal |
104 } // namespace ash | 96 } // namespace ash |
105 | 97 |
106 #endif // ASH_WM_WINDOW_PROPERTIES_H_ | 98 #endif // ASH_WM_WINDOW_PROPERTIES_H_ |
OLD | NEW |