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

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: Docking with dock width=0 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 virtual void OnAppTerminating() OVERRIDE; 103 virtual void OnAppTerminating() OVERRIDE;
104 104
105 private: 105 private:
106 friend class WorkspaceLayoutManager; 106 friend class WorkspaceLayoutManager;
107 friend class WorkspaceManagerTest; 107 friend class WorkspaceManagerTest;
108 108
109 class LayoutManagerImpl; 109 class LayoutManagerImpl;
110 110
111 typedef std::vector<Workspace*> Workspaces; 111 typedef std::vector<Workspace*> Workspaces;
112 112
113 // Reason for the workspace switch. Used to determine the characterstics of 113 // Reason for the workspace switch. Used to determine the characteristics of
114 // the animation. 114 // the animation.
115 enum SwitchReason { 115 enum SwitchReason {
116 SWITCH_WINDOW_MADE_ACTIVE, 116 SWITCH_WINDOW_MADE_ACTIVE,
117 SWITCH_WINDOW_REMOVED, 117 SWITCH_WINDOW_REMOVED,
118 SWITCH_VISIBILITY_CHANGED, 118 SWITCH_VISIBILITY_CHANGED,
119 SWITCH_MINIMIZED, 119 SWITCH_MINIMIZED,
120 SWITCH_MAXIMIZED_OR_RESTORED, 120 SWITCH_MAXIMIZED_OR_RESTORED,
121 // Switch a normal window in a maximized workspace to maximized. 121 // Switch a normal window in a maximized workspace to maximized.
122 SWITCH_MAXIMIZED_FROM_MAXIMIZED_WORKSPACE, 122 SWITCH_MAXIMIZED_FROM_MAXIMIZED_WORKSPACE,
123 SWITCH_TRACKED_BY_WORKSPACE_CHANGED, 123 SWITCH_TRACKED_BY_WORKSPACE_CHANGED,
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 // finger vertical scroll. 278 // finger vertical scroll.
279 scoped_ptr<WorkspaceCycler> workspace_cycler_; 279 scoped_ptr<WorkspaceCycler> workspace_cycler_;
280 280
281 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager); 281 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager);
282 }; 282 };
283 283
284 } // namespace internal 284 } // namespace internal
285 } // namespace ash 285 } // namespace ash
286 286
287 #endif // ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_ 287 #endif // ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698