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

Unified Diff: ash/wm/workspace/workspace_manager.h

Issue 11417150: Implement workspace scrubbing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/workspace/workspace_cycler.cc ('k') | ash/wm/workspace/workspace_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_manager.h
diff --git a/ash/wm/workspace/workspace_manager.h b/ash/wm/workspace/workspace_manager.h
index e59eada1c6ea9d7d1c4898926fc050fcfde8b101..79bf0acd3b891f050d3b27adf166674e859aff80 100644
--- a/ash/wm/workspace/workspace_manager.h
+++ b/ash/wm/workspace/workspace_manager.h
@@ -53,6 +53,11 @@ class Workspace;
// are maximized and restored they are reparented to the right Window.
class ASH_EXPORT WorkspaceManager : public ash::ShellObserver {
public:
+ enum CycleDirection {
+ CYCLE_NEXT,
+ CYCLE_PREVIOUS
+ };
+
explicit WorkspaceManager(aura::Window* viewport);
virtual ~WorkspaceManager();
@@ -78,6 +83,11 @@ class ASH_EXPORT WorkspaceManager : public ash::ShellObserver {
// when a new Window is being added.
aura::Window* GetParentForNewWindow(aura::Window* window);
+ // Called by the workspace cycler to activate the next workspace in
+ // |direction|. Returns false if there are no more workspaces to cycle
+ // to in |direction|.
+ bool CycleToWorkspace(CycleDirection direction);
+
// Starts the animation that occurs on first login.
void DoInitialAnimation();
« no previous file with comments | « ash/wm/workspace/workspace_cycler.cc ('k') | ash/wm/workspace/workspace_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698