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

Side by Side Diff: ash/wm/workspace/workspace_manager.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 (exposing DragWindowResizer for tests, rebase) 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_WORKSPACE_WORKSPACE_MANAGER_H_ 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_
6 #define ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_ 6 #define ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 virtual void OnAppTerminating() OVERRIDE; 98 virtual void OnAppTerminating() OVERRIDE;
99 99
100 private: 100 private:
101 friend class WorkspaceLayoutManager; 101 friend class WorkspaceLayoutManager;
102 friend class WorkspaceManagerTest; 102 friend class WorkspaceManagerTest;
103 103
104 class LayoutManagerImpl; 104 class LayoutManagerImpl;
105 105
106 typedef std::vector<Workspace*> Workspaces; 106 typedef std::vector<Workspace*> Workspaces;
107 107
108 // Reason for the workspace switch. Used to determine the characterstics of 108 // Reason for the workspace switch. Used to determine the characteristics of
109 // the animation. 109 // the animation.
110 enum SwitchReason { 110 enum SwitchReason {
111 SWITCH_WINDOW_MADE_ACTIVE, 111 SWITCH_WINDOW_MADE_ACTIVE,
112 SWITCH_WINDOW_REMOVED, 112 SWITCH_WINDOW_REMOVED,
113 SWITCH_VISIBILITY_CHANGED, 113 SWITCH_VISIBILITY_CHANGED,
114 SWITCH_MINIMIZED, 114 SWITCH_MINIMIZED,
115 SWITCH_MAXIMIZED_OR_RESTORED, 115 SWITCH_MAXIMIZED_OR_RESTORED,
116 // Switch a normal window in a maximized workspace to maximized. 116 // Switch a normal window in a maximized workspace to maximized.
117 SWITCH_MAXIMIZED_FROM_MAXIMIZED_WORKSPACE, 117 SWITCH_MAXIMIZED_FROM_MAXIMIZED_WORKSPACE,
118 SWITCH_TRACKED_BY_WORKSPACE_CHANGED, 118 SWITCH_TRACKED_BY_WORKSPACE_CHANGED,
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // finger vertical scroll. 273 // finger vertical scroll.
274 scoped_ptr<WorkspaceCycler> workspace_cycler_; 274 scoped_ptr<WorkspaceCycler> workspace_cycler_;
275 275
276 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager); 276 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager);
277 }; 277 };
278 278
279 } // namespace internal 279 } // namespace internal
280 } // namespace ash 280 } // namespace ash
281 281
282 #endif // ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_ 282 #endif // ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698