Chromium Code Reviews| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 tracked by workspace code. Default is | 65 // 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, | 66 // 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 | 67 // nor does it attempt to impose constraints on the bounds of the window. This |
| 68 // is intended for tab dragging. | 68 // is intended for tab dragging. |
| 69 ASH_EXPORT void SetTrackedByWorkspace(aura::Window* window, bool value); | 69 ASH_EXPORT void SetTrackedByWorkspace(aura::Window* window, bool value); |
| 70 ASH_EXPORT bool GetTrackedByWorkspace(const aura::Window* window); | 70 ASH_EXPORT bool GetTrackedByWorkspace(const aura::Window* window); |
| 71 | 71 |
| 72 // Set if a window can be maximized by the window manager or not. | |
| 73 // The default is that the window can not be maximized. Setting the flag will | |
| 74 // have an immediate effect without animations (if maximize mode is enabled). | |
| 75 ASH_EXPORT void SetCanBeMaximizedByWorkspace(aura::Window* window, bool value); | |
|
sky
2013/04/29 20:36:53
This is roughly what I was thinking. But CanBeMazi
| |
| 76 ASH_EXPORT bool GetCanBeMaximizedByWorkspace(const aura::Window* window); | |
| 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 |