| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 enum WindowPersistsAcrossAllWorkspacesType { | 44 enum WindowPersistsAcrossAllWorkspacesType { |
| 45 WINDOW_PERSISTS_ACROSS_ALL_WORKSPACES_VALUE_DEFAULT, | 45 WINDOW_PERSISTS_ACROSS_ALL_WORKSPACES_VALUE_DEFAULT, |
| 46 WINDOW_PERSISTS_ACROSS_ALL_WORKSPACES_VALUE_NO, | 46 WINDOW_PERSISTS_ACROSS_ALL_WORKSPACES_VALUE_NO, |
| 47 WINDOW_PERSISTS_ACROSS_ALL_WORKSPACES_VALUE_YES, | 47 WINDOW_PERSISTS_ACROSS_ALL_WORKSPACES_VALUE_YES, |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 // Sets whether |window| is ignored when determining whether the shelf should | 50 // Sets whether |window| is ignored when determining whether the shelf should |
| 51 // be darkened when overlapped. | 51 // be darkened when overlapped. |
| 52 ASH_EXPORT void SetIgnoredByShelf(aura::Window* window, bool value); | 52 ASH_EXPORT void SetIgnoredByShelf(aura::Window* window, bool value); |
| 53 ASH_EXPORT bool GetIgnoredByShelf(const aura::Window* window); | 53 ASH_EXPORT bool GetIgnoredByShelf(aura::Window* window); |
| 54 | 54 |
| 55 // Sets whether the specified window is tracked by workspace code. Default is | 55 // Sets whether the specified window is tracked by workspace code. Default is |
| 56 // true. If set to false the workspace does not switch the current workspace, | 56 // true. If set to false the workspace does not switch the current workspace, |
| 57 // nor does it attempt to impose constraints on the bounds of the window. This | 57 // nor does it attempt to impose constraints on the bounds of the window. This |
| 58 // is intended for tab dragging. | 58 // is intended for tab dragging. |
| 59 ASH_EXPORT void SetTrackedByWorkspace(aura::Window* window, bool value); | 59 ASH_EXPORT void SetTrackedByWorkspace(aura::Window* window, bool value); |
| 60 ASH_EXPORT bool GetTrackedByWorkspace(const aura::Window* window); | 60 ASH_EXPORT bool GetTrackedByWorkspace(aura::Window* window); |
| 61 | 61 |
| 62 // Makes |window| persist across all workspaces. The default is controlled | 62 // Makes |window| persist across all workspaces. The default is controlled |
| 63 // by SetDefaultPersistsAcrossAllWorkspaces(). | 63 // by SetDefaultPersistsAcrossAllWorkspaces(). |
| 64 ASH_EXPORT void SetPersistsAcrossAllWorkspaces( | 64 ASH_EXPORT void SetPersistsAcrossAllWorkspaces( |
| 65 aura::Window* window, | 65 aura::Window* window, |
| 66 WindowPersistsAcrossAllWorkspacesType type); | 66 WindowPersistsAcrossAllWorkspacesType type); |
| 67 ASH_EXPORT bool GetPersistsAcrossAllWorkspaces(aura::Window* window); | 67 ASH_EXPORT bool GetPersistsAcrossAllWorkspaces(aura::Window* window); |
| 68 | 68 |
| 69 // Sets the default value for whether windows persist across all workspaces. | 69 // Sets the default value for whether windows persist across all workspaces. |
| 70 // The default is false. | 70 // The default is false. |
| 71 ASH_EXPORT void SetDefaultPersistsAcrossAllWorkspaces(bool value); | 71 ASH_EXPORT void SetDefaultPersistsAcrossAllWorkspaces(bool value); |
| 72 | 72 |
| 73 // Sets/Gets the RootWindowController for |root_window|. | 73 // Sets/Gets the RootWindowController for |root_window|. |
| 74 ASH_EXPORT void SetRootWindowController( | 74 ASH_EXPORT void SetRootWindowController( |
| 75 aura::RootWindow* root_window, | 75 aura::RootWindow* root_window, |
| 76 internal::RootWindowController* controller); | 76 internal::RootWindowController* controller); |
| 77 ASH_EXPORT internal::RootWindowController* GetRootWindowController( | 77 ASH_EXPORT internal::RootWindowController* GetRootWindowController( |
| 78 aura::RootWindow* root_window); | 78 aura::RootWindow* root_window); |
| 79 | 79 |
| 80 } | 80 } |
| 81 | 81 |
| 82 #endif // ASH_WM_PROPERTY_UTIL_H_ | 82 #endif // ASH_WM_PROPERTY_UTIL_H_ |
| OLD | NEW |