| 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> | |
| 9 | |
| 10 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 11 #include "ash/public/cpp/shelf_types.h" | |
| 12 #include "ui/base/class_property.h" | 9 #include "ui/base/class_property.h" |
| 13 #include "ui/base/ui_base_types.h" | 10 #include "ui/base/ui_base_types.h" |
| 14 #include "ui/gfx/geometry/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
| 15 | 12 |
| 16 namespace aura { | 13 namespace aura { |
| 17 template <typename T> | 14 template <typename T> |
| 18 using WindowProperty = ui::ClassProperty<T>; | 15 using WindowProperty = ui::ClassProperty<T>; |
| 19 } | 16 } |
| 20 | 17 |
| 21 namespace ash { | 18 namespace ash { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 52 // maximized mode window manager. | 49 // maximized mode window manager. |
| 53 ASH_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const | 50 ASH_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const |
| 54 kRestoreBoundsOverrideKey; | 51 kRestoreBoundsOverrideKey; |
| 55 | 52 |
| 56 // A property key which stores the bounds to restore a window to. These take | 53 // A property key which stores the bounds to restore a window to. These take |
| 57 // preference over the current bounds/state if |kRestoreBoundsOverrideKey| is | 54 // preference over the current bounds/state if |kRestoreBoundsOverrideKey| is |
| 58 // set. This is used by e.g. the always maximized mode window manager. | 55 // set. This is used by e.g. the always maximized mode window manager. |
| 59 ASH_EXPORT extern const aura::WindowProperty<ui::WindowShowState>* const | 56 ASH_EXPORT extern const aura::WindowProperty<ui::WindowShowState>* const |
| 60 kRestoreShowStateOverrideKey; | 57 kRestoreShowStateOverrideKey; |
| 61 | 58 |
| 62 // A property key to store the id for a window's shelf item. | |
| 63 ASH_EXPORT extern const aura::WindowProperty<ShelfID>* const kShelfIDKey; | |
| 64 | |
| 65 // Containers with this property (true) are aligned with physical pixel | 59 // Containers with this property (true) are aligned with physical pixel |
| 66 // boundary. | 60 // boundary. |
| 67 extern const aura::WindowProperty<bool>* const kSnapChildrenToPixelBoundary; | 61 extern const aura::WindowProperty<bool>* const kSnapChildrenToPixelBoundary; |
| 68 | 62 |
| 69 // Property to tell if the container uses the screen coordinates. | 63 // Property to tell if the container uses the screen coordinates. |
| 70 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey; | 64 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey; |
| 71 | 65 |
| 72 ASH_EXPORT extern const aura::WindowProperty<WidgetCreationType>* const | 66 ASH_EXPORT extern const aura::WindowProperty<WidgetCreationType>* const |
| 73 kWidgetCreationTypeKey; | 67 kWidgetCreationTypeKey; |
| 74 | 68 |
| 75 // A property key to store WindowState in the window. The window state | 69 // A property key to store WindowState in the window. The window state |
| 76 // is owned by the window. | 70 // is owned by the window. |
| 77 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey; | 71 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey; |
| 78 | 72 |
| 79 // Alphabetical sort. | 73 // Alphabetical sort. |
| 80 | 74 |
| 81 } // namespace ash | 75 } // namespace ash |
| 82 | 76 |
| 83 #endif // ASH_WM_WINDOW_PROPERTIES_H_ | 77 #endif // ASH_WM_WINDOW_PROPERTIES_H_ |
| OLD | NEW |