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

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 (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_BACKGROUND_ONLY_WITHIN_DESKTOP, 114 SWITCH_BACKGROUND_ONLY_WITHIN_DESKTOP,
115 SWITCH_MINIMIZED, 115 SWITCH_MINIMIZED,
116 SWITCH_MAXIMIZED_OR_RESTORED, 116 SWITCH_MAXIMIZED_OR_RESTORED,
117 // Switch a normal window in a fullscreen workspace to get fullscreen. 117 // Switch a normal window in a fullscreen workspace to get fullscreen.
118 // TODO(mukai): this should be removed in the future. Normal windows should 118 // TODO(mukai): this should be removed in the future. Normal windows should
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 // finger vertical scroll. 276 // finger vertical scroll.
277 scoped_ptr<WorkspaceCycler> workspace_cycler_; 277 scoped_ptr<WorkspaceCycler> workspace_cycler_;
278 278
279 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager); 279 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager);
280 }; 280 };
281 281
282 } // namespace internal 282 } // namespace internal
283 } // namespace ash 283 } // namespace ash
284 284
285 #endif // ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_ 285 #endif // ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_layout_manager.cc ('k') | ash/wm/workspace/workspace_window_resizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698