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 ash { | 17 namespace ash { |
18 class FramePainter; | |
19 namespace internal { | 18 namespace internal { |
20 class RootWindowController; | |
21 | 19 |
22 // Shell-specific window property keys. | 20 // Shell-specific window property keys. |
23 | 21 |
24 // Alphabetical sort. | 22 // Alphabetical sort. |
25 | 23 |
26 // A property key to suppress the cross-fade animation for the transition to | 24 // A property key to suppress the cross-fade animation for the transition to |
27 // the fullscreen state. | 25 // the fullscreen state. |
28 extern const aura::WindowProperty<bool>* const kAnimateToFullscreenKey; | 26 extern const aura::WindowProperty<bool>* const kAnimateToFullscreenKey; |
29 | 27 |
30 // A property key to indicate that an in progress drag should be continued | 28 // A property key to indicate that an in progress drag should be continued |
31 // after the window is reparented to another container. | 29 // after the window is reparented to another container. |
32 extern const aura::WindowProperty<bool>* const kContinueDragAfterReparent; | 30 extern const aura::WindowProperty<bool>* const kContinueDragAfterReparent; |
33 | 31 |
34 // A property key to store display_id an aura::RootWindow is mapped to. | |
35 extern const aura::WindowProperty<int64>* const kDisplayIdKey; | |
36 | |
37 // A property key to indicate whether there is any chrome at all that cannot be | 32 // A property key to indicate whether there is any chrome at all that cannot be |
38 // hidden when the window is fullscreen. This is unrelated to whether the full | 33 // hidden when the window is fullscreen. This is unrelated to whether the full |
39 // chrome can be revealed by hovering the mouse at the top of the screen. | 34 // chrome can be revealed by hovering the mouse at the top of the screen. |
40 ASH_EXPORT extern const aura::WindowProperty<bool>* const | 35 ASH_EXPORT extern const aura::WindowProperty<bool>* const |
41 kFullscreenUsesMinimalChromeKey; | 36 kFullscreenUsesMinimalChromeKey; |
42 | 37 |
43 // A property key to disable the frame painter policy for solo windows. | 38 // A property key to disable the frame painter policy for solo windows. |
44 // It is only available for root windows. | 39 // It is only available for root windows. |
45 ASH_EXPORT extern const aura::WindowProperty<bool>* const | 40 ASH_EXPORT extern const aura::WindowProperty<bool>* const |
46 kIgnoreSoloWindowFramePainterPolicy; | 41 kIgnoreSoloWindowFramePainterPolicy; |
47 | 42 |
48 // True if the window is ignored by the shelf layout manager for purposes of | 43 // True if the window is ignored by the shelf layout manager for purposes of |
49 // darkening the shelf. | 44 // darkening the shelf. |
50 extern const aura::WindowProperty<bool>* const | 45 extern const aura::WindowProperty<bool>* const |
51 kIgnoredByShelfKey; | 46 kIgnoredByShelfKey; |
52 | 47 |
53 // True if this window is an attached panel. | 48 // True if this window is an attached panel. |
54 ASH_EXPORT extern const aura::WindowProperty<bool>* const kPanelAttachedKey; | 49 ASH_EXPORT extern const aura::WindowProperty<bool>* const kPanelAttachedKey; |
55 | 50 |
56 extern const aura::WindowProperty<RootWindowController*>* const | |
57 kRootWindowControllerKey; | |
58 | |
59 // RootWindow property to indicate if the window in the active workspace should | |
60 // use the transparent "solo-window" header style. | |
61 ASH_EXPORT extern const aura::WindowProperty<bool>* const | |
62 kSoloWindowHeaderKey; | |
63 | |
64 // If this is set to true, the window stays in the same root window | 51 // If this is set to true, the window stays in the same root window |
65 // even if the bounds outside of its root window is set. | 52 // even if the bounds outside of its root window is set. |
66 // This is exported as it's used in the tests. | 53 // This is exported as it's used in the tests. |
67 ASH_EXPORT extern const aura::WindowProperty<bool>* const | 54 ASH_EXPORT extern const aura::WindowProperty<bool>* const |
68 kStayInSameRootWindowKey; | 55 kStayInSameRootWindowKey; |
69 | 56 |
70 // A property key to remember if a windows position or size was changed by a | 57 // A property key to remember if a windows position or size was changed by a |
71 // user. | 58 // user. |
72 ASH_EXPORT extern const aura::WindowProperty<bool>* const | 59 ASH_EXPORT extern const aura::WindowProperty<bool>* const |
73 kUserChangedWindowPositionOrSizeKey; | 60 kUserChangedWindowPositionOrSizeKey; |
(...skipping 19 matching lines...) Expand all Loading... |
93 // True if the window is controlled by the workspace manager. | 80 // True if the window is controlled by the workspace manager. |
94 extern const aura::WindowProperty<bool>* const | 81 extern const aura::WindowProperty<bool>* const |
95 kWindowTrackedByWorkspaceKey; | 82 kWindowTrackedByWorkspaceKey; |
96 | 83 |
97 // Alphabetical sort. | 84 // Alphabetical sort. |
98 | 85 |
99 } // namespace internal | 86 } // namespace internal |
100 } // namespace ash | 87 } // namespace ash |
101 | 88 |
102 #endif // ASH_WM_WINDOW_PROPERTIES_H_ | 89 #endif // ASH_WM_WINDOW_PROPERTIES_H_ |
OLD | NEW |