| 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_PROPERTY_UTIL_H_ | 5 #ifndef ASH_WM_PROPERTY_UTIL_H_ |
| 6 #define ASH_WM_PROPERTY_UTIL_H_ | 6 #define ASH_WM_PROPERTY_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ash/ash_export.h" | 9 #include "ash/ash_export.h" |
| 10 | 10 |
| 11 namespace aura { | 11 namespace aura { |
| 12 class RootWindow; |
| 12 class Window; | 13 class Window; |
| 13 } | 14 } |
| 14 | 15 |
| 15 namespace gfx { | 16 namespace gfx { |
| 16 class Rect; | 17 class Rect; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace ash { | 20 namespace ash { |
| 21 namespace internal { |
| 22 class RootWindowController; |
| 23 } |
| 20 | 24 |
| 21 // Sets the restore bounds property on |window|. Deletes existing bounds value | 25 // Sets the restore bounds property on |window|. Deletes existing bounds value |
| 22 // if exists. | 26 // if exists. |
| 23 ASH_EXPORT void SetRestoreBounds(aura::Window* window, const gfx::Rect& bounds); | 27 ASH_EXPORT void SetRestoreBounds(aura::Window* window, const gfx::Rect& bounds); |
| 24 | 28 |
| 25 // Same as SetRestoreBounds(), but does nothing if the restore bounds have | 29 // Same as SetRestoreBounds(), but does nothing if the restore bounds have |
| 26 // already been set. The bounds used are the bounds of the window. | 30 // already been set. The bounds used are the bounds of the window. |
| 27 ASH_EXPORT void SetRestoreBoundsIfNotSet(aura::Window* window); | 31 ASH_EXPORT void SetRestoreBoundsIfNotSet(aura::Window* window); |
| 28 | 32 |
| 29 // Returns the restore bounds property on |window|. NULL if the | 33 // Returns the restore bounds property on |window|. NULL if the |
| (...skipping 24 matching lines...) Expand all Loading... |
| 54 // by SetDefaultPersistsAcrossAllWorkspaces(). | 58 // by SetDefaultPersistsAcrossAllWorkspaces(). |
| 55 ASH_EXPORT void SetPersistsAcrossAllWorkspaces( | 59 ASH_EXPORT void SetPersistsAcrossAllWorkspaces( |
| 56 aura::Window* window, | 60 aura::Window* window, |
| 57 WindowPersistsAcrossAllWorkspacesType type); | 61 WindowPersistsAcrossAllWorkspacesType type); |
| 58 ASH_EXPORT bool GetPersistsAcrossAllWorkspaces(aura::Window* window); | 62 ASH_EXPORT bool GetPersistsAcrossAllWorkspaces(aura::Window* window); |
| 59 | 63 |
| 60 // Sets the default value for whether windows persist across all workspaces. | 64 // Sets the default value for whether windows persist across all workspaces. |
| 61 // The default is false. | 65 // The default is false. |
| 62 ASH_EXPORT void SetDefaultPersistsAcrossAllWorkspaces(bool value); | 66 ASH_EXPORT void SetDefaultPersistsAcrossAllWorkspaces(bool value); |
| 63 | 67 |
| 68 // Sets/Gets the RootWindowController for |root_window|. |
| 69 ASH_EXPORT void SetRootWindowController( |
| 70 aura::RootWindow* root_window, |
| 71 internal::RootWindowController* controller); |
| 72 ASH_EXPORT internal::RootWindowController* GetRootWindowController( |
| 73 aura::RootWindow* root_window); |
| 74 |
| 64 } | 75 } |
| 65 | 76 |
| 66 #endif // ASH_WM_PROPERTY_UTIL_H_ | 77 #endif // ASH_WM_PROPERTY_UTIL_H_ |
| OLD | NEW |