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

Unified Diff: ash/wm/workspace_controller.h

Issue 10827377: Adds an interface between WorkspaceController and (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add virtual & OVERRIDE Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/workspace/workspace_manager.cc ('k') | ash/wm/workspace_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace_controller.h
diff --git a/ash/wm/workspace_controller.h b/ash/wm/workspace_controller.h
index ea7710eb6b2822ebea898123bb26ca7b15795d41..d7f7b6b50eb9d5d44c7c3990b1e098fca4f3cd43 100644
--- a/ash/wm/workspace_controller.h
+++ b/ash/wm/workspace_controller.h
@@ -18,11 +18,11 @@ class Window;
namespace ash {
namespace internal {
+class BaseWorkspaceManager;
class ShelfLayoutManager;
class WorkspaceControllerTestHelper;
class WorkspaceEventFilter;
class WorkspaceLayoutManager;
-class WorkspaceManager;
// WorkspaceController acts as a central place that ties together all the
// various workspace pieces: WorkspaceManager, WorkspaceLayoutManager and
@@ -45,6 +45,12 @@ class ASH_EXPORT WorkspaceController
void SetShelf(ShelfLayoutManager* shelf);
+ // Sets the active workspace based on |window|.
+ void SetActiveWorkspaceByWindow(aura::Window* window);
+
+ // See description in BaseWorkspaceManager::GetParentForNewWindow().
+ aura::Window* GetParentForNewWindow(aura::Window* window);
+
// aura::client::ActivationChangeObserver overrides:
virtual void OnWindowActivated(aura::Window* window,
aura::Window* old_active) OVERRIDE;
@@ -54,7 +60,7 @@ class ASH_EXPORT WorkspaceController
aura::Window* viewport_;
- scoped_ptr<WorkspaceManager> workspace_manager_;
+ scoped_ptr<BaseWorkspaceManager> workspace_manager_;
// Owned by the window its attached to.
WorkspaceLayoutManager* layout_manager_;
« no previous file with comments | « ash/wm/workspace/workspace_manager.cc ('k') | ash/wm/workspace_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698