| 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/ui_base_types.h" | 9 #include "ui/base/ui_base_types.h" |
| 10 | 10 |
| 11 namespace aura { | 11 namespace aura { |
| 12 class Window; | 12 class Window; |
| 13 | 13 |
| 14 template<typename T> | 14 template<typename T> |
| 15 struct WindowProperty; | 15 struct WindowProperty; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace ash { | 18 namespace ash { |
| 19 namespace wm { | 19 namespace wm { |
| 20 class WindowState; | 20 class WindowState; |
| 21 } // namespace wm | 21 } // namespace wm |
| 22 namespace internal { | 22 namespace internal { |
| 23 | 23 |
| 24 // Shell-specific window property keys. | 24 // Shell-specific window property keys. |
| 25 | 25 |
| 26 // Alphabetical sort. | 26 // Alphabetical sort. |
| 27 | 27 |
| 28 // A property key to suppress the cross-fade animation for the transition to | |
| 29 // the fullscreen state. | |
| 30 extern const aura::WindowProperty<bool>* const kAnimateToFullscreenKey; | |
| 31 | |
| 32 // A property key to indicate whether there is any chrome at all that cannot be | 28 // A property key to indicate whether there is any chrome at all that cannot be |
| 33 // hidden when the window is fullscreen. This is unrelated to whether the full | 29 // hidden when the window is fullscreen. This is unrelated to whether the full |
| 34 // chrome can be revealed by hovering the mouse at the top of the screen. | 30 // chrome can be revealed by hovering the mouse at the top of the screen. |
| 35 ASH_EXPORT extern const aura::WindowProperty<bool>* const | 31 ASH_EXPORT extern const aura::WindowProperty<bool>* const |
| 36 kFullscreenUsesMinimalChromeKey; | 32 kFullscreenUsesMinimalChromeKey; |
| 37 | 33 |
| 38 // If this is set to true, the window stays in the same root window | 34 // If this is set to true, the window stays in the same root window |
| 39 // even if the bounds outside of its root window is set. | 35 // even if the bounds outside of its root window is set. |
| 40 // This is exported as it's used in the tests. | 36 // This is exported as it's used in the tests. |
| 41 ASH_EXPORT extern const aura::WindowProperty<bool>* const | 37 ASH_EXPORT extern const aura::WindowProperty<bool>* const |
| 42 kStayInSameRootWindowKey; | 38 kStayInSameRootWindowKey; |
| 43 | 39 |
| 44 // Property to tell if the container uses the screen coordinates. | 40 // Property to tell if the container uses the screen coordinates. |
| 45 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey; | 41 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey; |
| 46 | 42 |
| 47 // A property key to store WindowState in the window. The window state | 43 // A property key to store WindowState in the window. The window state |
| 48 // is owned by the window. | 44 // is owned by the window. |
| 49 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey; | 45 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey; |
| 50 | 46 |
| 51 // Alphabetical sort. | 47 // Alphabetical sort. |
| 52 | 48 |
| 53 } // namespace internal | 49 } // namespace internal |
| 54 } // namespace ash | 50 } // namespace ash |
| 55 | 51 |
| 56 #endif // ASH_WM_WINDOW_PROPERTIES_H_ | 52 #endif // ASH_WM_WINDOW_PROPERTIES_H_ |
| OLD | NEW |