| 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 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/basictypes.h" |
| 9 | 10 |
| 10 namespace aura { | 11 namespace aura { |
| 11 class RootWindow; | 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 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // Sets whether |window| should always be restored to the restore bounds | 56 // Sets whether |window| should always be restored to the restore bounds |
| 56 // (sometimes the workspace layout manager restores the window to its original | 57 // (sometimes the workspace layout manager restores the window to its original |
| 57 // bounds instead of the restore bounds. Setting this key overrides that | 58 // bounds instead of the restore bounds. Setting this key overrides that |
| 58 // behaviour). The flag is reset to the default value after the window is | 59 // behaviour). The flag is reset to the default value after the window is |
| 59 // restored. | 60 // restored. |
| 60 ASH_EXPORT void SetWindowAlwaysRestoresToRestoreBounds(aura::Window* window, | 61 ASH_EXPORT void SetWindowAlwaysRestoresToRestoreBounds(aura::Window* window, |
| 61 bool value); | 62 bool value); |
| 62 ASH_EXPORT bool GetWindowAlwaysRestoresToRestoreBounds( | 63 ASH_EXPORT bool GetWindowAlwaysRestoresToRestoreBounds( |
| 63 const aura::Window* window); | 64 const aura::Window* window); |
| 64 | 65 |
| 66 // Sets whether the specified window is docked near a screen edge. |
| 67 // Default is false and may change when a window is moved by user or when the |
| 68 // dock alignment is changed. |
| 69 ASH_EXPORT void SetDockEdges(aura::Window* window, int64 value); |
| 70 ASH_EXPORT int64 GetDockEdges(const aura::Window* window); |
| 71 |
| 65 // Sets whether the specified window is tracked by workspace code. Default is | 72 // Sets whether the specified window is tracked by workspace code. Default is |
| 66 // true. If set to false the workspace does not switch the current workspace, | 73 // true. If set to false the workspace does not switch the current workspace, |
| 67 // nor does it attempt to impose constraints on the bounds of the window. This | 74 // nor does it attempt to impose constraints on the bounds of the window. This |
| 68 // is intended for tab dragging. | 75 // is intended for tab dragging. |
| 69 ASH_EXPORT void SetTrackedByWorkspace(aura::Window* window, bool value); | 76 ASH_EXPORT void SetTrackedByWorkspace(aura::Window* window, bool value); |
| 70 ASH_EXPORT bool GetTrackedByWorkspace(const aura::Window* window); | 77 ASH_EXPORT bool GetTrackedByWorkspace(const aura::Window* window); |
| 71 | 78 |
| 72 // Makes |window| persist across all workspaces. The default is controlled | 79 // Makes |window| persist across all workspaces. The default is controlled |
| 73 // by SetDefaultPersistsAcrossAllWorkspaces(). | 80 // by SetDefaultPersistsAcrossAllWorkspaces(). |
| 74 ASH_EXPORT void SetPersistsAcrossAllWorkspaces( | 81 ASH_EXPORT void SetPersistsAcrossAllWorkspaces( |
| 75 aura::Window* window, | 82 aura::Window* window, |
| 76 WindowPersistsAcrossAllWorkspacesType type); | 83 WindowPersistsAcrossAllWorkspacesType type); |
| 77 ASH_EXPORT bool GetPersistsAcrossAllWorkspaces(aura::Window* window); | 84 ASH_EXPORT bool GetPersistsAcrossAllWorkspaces(aura::Window* window); |
| 78 | 85 |
| 79 // Sets the default value for whether windows persist across all workspaces. | 86 // Sets the default value for whether windows persist across all workspaces. |
| 80 // The default is false. | 87 // The default is false. |
| 81 ASH_EXPORT void SetDefaultPersistsAcrossAllWorkspaces(bool value); | 88 ASH_EXPORT void SetDefaultPersistsAcrossAllWorkspaces(bool value); |
| 82 | 89 |
| 83 // Sets/Gets the RootWindowController for |root_window|. | 90 // Sets/Gets the RootWindowController for |root_window|. |
| 84 ASH_EXPORT void SetRootWindowController( | 91 ASH_EXPORT void SetRootWindowController( |
| 85 aura::RootWindow* root_window, | 92 aura::RootWindow* root_window, |
| 86 internal::RootWindowController* controller); | 93 internal::RootWindowController* controller); |
| 87 ASH_EXPORT internal::RootWindowController* GetRootWindowController( | 94 ASH_EXPORT internal::RootWindowController* GetRootWindowController( |
| 88 const aura::RootWindow* root_window); | 95 const aura::RootWindow* root_window); |
| 89 | 96 |
| 90 } | 97 } |
| 91 | 98 |
| 92 #endif // ASH_WM_PROPERTY_UTIL_H_ | 99 #endif // ASH_WM_PROPERTY_UTIL_H_ |
| OLD | NEW |