| 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/class_property.h" | 9 #include "ui/base/class_property.h" |
| 10 #include "ui/base/ui_base_types.h" | 10 #include "ui/base/ui_base_types.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // The window manager creates an aura::Window and a views::Widget to show | 33 // The window manager creates an aura::Window and a views::Widget to show |
| 34 // the non-client frame decorations. In this case the creation type is | 34 // the non-client frame decorations. In this case the creation type is |
| 35 // FOR_CLIENT. | 35 // FOR_CLIENT. |
| 36 FOR_CLIENT, | 36 FOR_CLIENT, |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 // Shell-specific window property keys; some keys are exported for use in tests. | 39 // Shell-specific window property keys; some keys are exported for use in tests. |
| 40 | 40 |
| 41 // Alphabetical sort. | 41 // Alphabetical sort. |
| 42 | 42 |
| 43 // If this is set to true, the hit region for children is slightly larger for |
| 44 // easier resizing. |
| 45 ASH_EXPORT extern const aura::WindowProperty<bool>* const |
| 46 kChildrenUseExtendedHitRegion; |
| 47 |
| 43 // If this is set to true, the window stays in the same root window even if the | 48 // If this is set to true, the window stays in the same root window even if the |
| 44 // bounds outside of its root window is set. | 49 // bounds outside of its root window is set. |
| 45 ASH_EXPORT extern const aura::WindowProperty<bool>* const kLockedToRootKey; | 50 ASH_EXPORT extern const aura::WindowProperty<bool>* const kLockedToRootKey; |
| 46 | 51 |
| 47 // A property key which stores the bounds to restore a window to. These take | 52 // A property key which stores the bounds to restore a window to. These take |
| 48 // preference over the current bounds/state. This is used by e.g. the always | 53 // preference over the current bounds/state. This is used by e.g. the always |
| 49 // tablet mode window manager. | 54 // tablet mode window manager. |
| 50 ASH_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const | 55 ASH_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const |
| 51 kRestoreBoundsOverrideKey; | 56 kRestoreBoundsOverrideKey; |
| 52 | 57 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 68 | 73 |
| 69 // A property key to store WindowState in the window. The window state | 74 // A property key to store WindowState in the window. The window state |
| 70 // is owned by the window. | 75 // is owned by the window. |
| 71 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey; | 76 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey; |
| 72 | 77 |
| 73 // Alphabetical sort. | 78 // Alphabetical sort. |
| 74 | 79 |
| 75 } // namespace ash | 80 } // namespace ash |
| 76 | 81 |
| 77 #endif // ASH_WM_WINDOW_PROPERTIES_H_ | 82 #endif // ASH_WM_WINDOW_PROPERTIES_H_ |
| OLD | NEW |