Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: ash/wm/property_util.h

Issue 13896026: Stick windows to sides of workspaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dock with zero width (comments) Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 // Enum for possible edges that a window is docked on to the dock
66 enum DockEdge {
sky 2013/06/11 00:03:13 Again, Docked would be better here.
varkha 2013/06/11 02:34:24 Done.
67 DOCK_EDGE_NONE,
68 DOCK_EDGE_LEFT,
69 DOCK_EDGE_RIGHT,
70 };
71
72 // Sets whether the specified window is docked near a screen edge.
73 // Default is DOCK_EDGE_NONE and may change when a window is moved by user or
74 // when the launcher shelf alignment is changed.
75 ASH_EXPORT void SetDockEdge(aura::Window* window, DockEdge value);
76 ASH_EXPORT DockEdge GetDockEdge(const aura::Window* window);
77 bool IsWindowDocked(const aura::Window* window);
78
65 // Sets whether the specified window is tracked by workspace code. Default is 79 // 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, 80 // 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 81 // nor does it attempt to impose constraints on the bounds of the window. This
68 // is intended for tab dragging. 82 // is intended for tab dragging.
69 ASH_EXPORT void SetTrackedByWorkspace(aura::Window* window, bool value); 83 ASH_EXPORT void SetTrackedByWorkspace(aura::Window* window, bool value);
70 ASH_EXPORT bool GetTrackedByWorkspace(const aura::Window* window); 84 ASH_EXPORT bool GetTrackedByWorkspace(const aura::Window* window);
71 85
72 // Makes |window| persist across all workspaces. The default is controlled 86 // Makes |window| persist across all workspaces. The default is controlled
73 // by SetDefaultPersistsAcrossAllWorkspaces(). 87 // by SetDefaultPersistsAcrossAllWorkspaces().
74 ASH_EXPORT void SetPersistsAcrossAllWorkspaces( 88 ASH_EXPORT void SetPersistsAcrossAllWorkspaces(
75 aura::Window* window, 89 aura::Window* window,
76 WindowPersistsAcrossAllWorkspacesType type); 90 WindowPersistsAcrossAllWorkspacesType type);
77 ASH_EXPORT bool GetPersistsAcrossAllWorkspaces(aura::Window* window); 91 ASH_EXPORT bool GetPersistsAcrossAllWorkspaces(aura::Window* window);
78 92
79 // Sets the default value for whether windows persist across all workspaces. 93 // Sets the default value for whether windows persist across all workspaces.
80 // The default is false. 94 // The default is false.
81 ASH_EXPORT void SetDefaultPersistsAcrossAllWorkspaces(bool value); 95 ASH_EXPORT void SetDefaultPersistsAcrossAllWorkspaces(bool value);
82 96
83 // Sets/Gets the RootWindowController for |root_window|. 97 // Sets/Gets the RootWindowController for |root_window|.
84 ASH_EXPORT void SetRootWindowController( 98 ASH_EXPORT void SetRootWindowController(
85 aura::RootWindow* root_window, 99 aura::RootWindow* root_window,
86 internal::RootWindowController* controller); 100 internal::RootWindowController* controller);
87 ASH_EXPORT internal::RootWindowController* GetRootWindowController( 101 ASH_EXPORT internal::RootWindowController* GetRootWindowController(
88 const aura::RootWindow* root_window); 102 const aura::RootWindow* root_window);
89 103
90 } 104 }
91 105
92 #endif // ASH_WM_PROPERTY_UTIL_H_ 106 #endif // ASH_WM_PROPERTY_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698