| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "ash/common/shelf/shelf_item_types.h" | 11 #include "ash/common/shelf/shelf_item_types.h" |
| 12 #include "ui/base/ui_base_types.h" | 12 #include "ui/base/ui_base_types.h" |
| 13 #include "ui/gfx/geometry/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
| 14 | 14 |
| 15 namespace aura { | 15 namespace aura { |
| 16 template <typename T> | 16 template <typename T> |
| 17 struct WindowProperty; | 17 struct WindowProperty; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace ash { | 20 namespace ash { |
| 21 namespace wm { | 21 namespace wm { |
| 22 class WindowState; | 22 class WindowState; |
| 23 } // namespace wm | 23 } // namespace wm |
| 24 | 24 |
| 25 // Shell-specific window property keys. | 25 // Shell-specific window property keys; some keys are exported for use in tests. |
| 26 | 26 |
| 27 // Alphabetical sort. | 27 // Alphabetical sort. |
| 28 | 28 |
| 29 // If this is set to true, the window stays in the same root window even if the | 29 // If this is set to true, the window stays in the same root window even if the |
| 30 // bounds outside of its root window is set. | 30 // bounds outside of its root window is set. |
| 31 // This is exported as it's used in the tests. | |
| 32 ASH_EXPORT extern const aura::WindowProperty<bool>* const kLockedToRootKey; | 31 ASH_EXPORT extern const aura::WindowProperty<bool>* const kLockedToRootKey; |
| 33 | 32 |
| 33 // If true (and the window is a panel), it's attached to its shelf item. |
| 34 ASH_EXPORT extern const aura::WindowProperty<bool>* const kPanelAttachedKey; |
| 35 |
| 34 // A property key which stores the bounds to restore a window to. These take | 36 // A property key which stores the bounds to restore a window to. These take |
| 35 // preference over the current bounds/state. This is used by e.g. the always | 37 // preference over the current bounds/state. This is used by e.g. the always |
| 36 // maximized mode window manager. | 38 // maximized mode window manager. |
| 37 ASH_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const | 39 ASH_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const |
| 38 kRestoreBoundsOverrideKey; | 40 kRestoreBoundsOverrideKey; |
| 39 | 41 |
| 40 // A property key which stores the bounds to restore a window to. These take | 42 // A property key which stores the bounds to restore a window to. These take |
| 41 // preference over the current bounds/state if |kRestoreBoundsOverrideKey| is | 43 // preference over the current bounds/state if |kRestoreBoundsOverrideKey| is |
| 42 // set. This is used by e.g. the always maximized mode window manager. | 44 // set. This is used by e.g. the always maximized mode window manager. |
| 43 ASH_EXPORT extern const aura::WindowProperty<ui::WindowShowState>* const | 45 ASH_EXPORT extern const aura::WindowProperty<ui::WindowShowState>* const |
| (...skipping 14 matching lines...) Expand all Loading... |
| 58 | 60 |
| 59 // A property key to store WindowState in the window. The window state | 61 // A property key to store WindowState in the window. The window state |
| 60 // is owned by the window. | 62 // is owned by the window. |
| 61 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey; | 63 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey; |
| 62 | 64 |
| 63 // Alphabetical sort. | 65 // Alphabetical sort. |
| 64 | 66 |
| 65 } // namespace ash | 67 } // namespace ash |
| 66 | 68 |
| 67 #endif // ASH_WM_WINDOW_PROPERTIES_H_ | 69 #endif // ASH_WM_WINDOW_PROPERTIES_H_ |
| OLD | NEW |