| 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 | 9 |
| 10 namespace aura { | 10 namespace aura { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // Sets whether |window| should always be restored to the restore bounds | 55 // Sets whether |window| should always be restored to the restore bounds |
| 56 // (sometimes the workspace layout manager restores the window to its original | 56 // (sometimes the workspace layout manager restores the window to its original |
| 57 // bounds instead of the restore bounds. Setting this key overrides that | 57 // 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 | 58 // behaviour). The flag is reset to the default value after the window is |
| 59 // restored. | 59 // restored. |
| 60 ASH_EXPORT void SetWindowAlwaysRestoresToRestoreBounds(aura::Window* window, | 60 ASH_EXPORT void SetWindowAlwaysRestoresToRestoreBounds(aura::Window* window, |
| 61 bool value); | 61 bool value); |
| 62 ASH_EXPORT bool GetWindowAlwaysRestoresToRestoreBounds( | 62 ASH_EXPORT bool GetWindowAlwaysRestoresToRestoreBounds( |
| 63 const aura::Window* window); | 63 const aura::Window* window); |
| 64 | 64 |
| 65 // Sets whether the specified window is glued or "stuck" to a workspace edge. |
| 66 // Default is false and is changing when a window is resized or when its |
| 67 // maximized state changes. This is used in gutter implementation. |
| 68 ASH_EXPORT void SetStuckToEdge(aura::Window* window, int value); |
| 69 ASH_EXPORT int GetStuckToEdge(const aura::Window* window); |
| 70 |
| 65 // Sets whether the specified window is tracked by workspace code. Default is | 71 // 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, | 72 // 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 | 73 // nor does it attempt to impose constraints on the bounds of the window. This |
| 68 // is intended for tab dragging. | 74 // is intended for tab dragging. |
| 69 ASH_EXPORT void SetTrackedByWorkspace(aura::Window* window, bool value); | 75 ASH_EXPORT void SetTrackedByWorkspace(aura::Window* window, bool value); |
| 70 ASH_EXPORT bool GetTrackedByWorkspace(const aura::Window* window); | 76 ASH_EXPORT bool GetTrackedByWorkspace(const aura::Window* window); |
| 71 | 77 |
| 72 // Makes |window| persist across all workspaces. The default is controlled | 78 // Makes |window| persist across all workspaces. The default is controlled |
| 73 // by SetDefaultPersistsAcrossAllWorkspaces(). | 79 // by SetDefaultPersistsAcrossAllWorkspaces(). |
| 74 ASH_EXPORT void SetPersistsAcrossAllWorkspaces( | 80 ASH_EXPORT void SetPersistsAcrossAllWorkspaces( |
| 75 aura::Window* window, | 81 aura::Window* window, |
| 76 WindowPersistsAcrossAllWorkspacesType type); | 82 WindowPersistsAcrossAllWorkspacesType type); |
| 77 ASH_EXPORT bool GetPersistsAcrossAllWorkspaces(aura::Window* window); | 83 ASH_EXPORT bool GetPersistsAcrossAllWorkspaces(aura::Window* window); |
| 78 | 84 |
| 79 // Sets the default value for whether windows persist across all workspaces. | 85 // Sets the default value for whether windows persist across all workspaces. |
| 80 // The default is false. | 86 // The default is false. |
| 81 ASH_EXPORT void SetDefaultPersistsAcrossAllWorkspaces(bool value); | 87 ASH_EXPORT void SetDefaultPersistsAcrossAllWorkspaces(bool value); |
| 82 | 88 |
| 83 // Sets/Gets the RootWindowController for |root_window|. | 89 // Sets/Gets the RootWindowController for |root_window|. |
| 84 ASH_EXPORT void SetRootWindowController( | 90 ASH_EXPORT void SetRootWindowController( |
| 85 aura::RootWindow* root_window, | 91 aura::RootWindow* root_window, |
| 86 internal::RootWindowController* controller); | 92 internal::RootWindowController* controller); |
| 87 ASH_EXPORT internal::RootWindowController* GetRootWindowController( | 93 ASH_EXPORT internal::RootWindowController* GetRootWindowController( |
| 88 const aura::RootWindow* root_window); | 94 const aura::RootWindow* root_window); |
| 89 | 95 |
| 90 } | 96 } |
| 91 | 97 |
| 92 #endif // ASH_WM_PROPERTY_UTIL_H_ | 98 #endif // ASH_WM_PROPERTY_UTIL_H_ |
| OLD | NEW |