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

Unified Diff: ash/wm/workspace/base_workspace_manager.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/stacking_controller.cc ('k') | ash/wm/workspace/workspace_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/base_workspace_manager.h
diff --git a/ash/wm/workspace/base_workspace_manager.h b/ash/wm/workspace/base_workspace_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..bce6650684db83e72f465e91258ac9b7b762d245
--- /dev/null
+++ b/ash/wm/workspace/base_workspace_manager.h
@@ -0,0 +1,50 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_WM_WORKSPACE_BASE_WORKSPACE_MANAGER_H_
+#define ASH_WM_WORKSPACE_BASE_WORKSPACE_MANAGER_H_
+
+#include "ash/ash_export.h"
+#include "ash/wm/workspace/workspace_types.h"
+
+namespace aura {
+class Window;
+}
+
+namespace ash {
+namespace internal {
+
+class ShelfLayoutManager;
+
+// TODO: this is temporary until WorkspaceManager2 is the default.
+class ASH_EXPORT BaseWorkspaceManager {
+ public:
+ virtual ~BaseWorkspaceManager() {}
+
+ // Returns true if in maximized or fullscreen mode.
+ virtual bool IsInMaximizedMode() const = 0;
+
+ // Sets the size of the grid. Newly added windows are forced to align to the
+ // size of the grid.
+ virtual void SetGridSize(int size) = 0;
+ virtual int GetGridSize() const = 0;
+
+ // Returns the current window state.
+ virtual WorkspaceWindowState GetWindowState() const = 0;
+
+ virtual void SetShelf(ShelfLayoutManager* shelf) = 0;
+
+ // Activates the workspace containing |window|. Does nothing if |window| is
+ // NULL or not contained in a workspace.
+ virtual void SetActiveWorkspaceByWindow(aura::Window* window) = 0;
+
+ // Returns the parent for |window|. This is invoked from StackingController
+ // when a new Window is being added.
+ virtual aura::Window* GetParentForNewWindow(aura::Window* window) = 0;
+};
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_WM_WORKSPACE_BASE_WORKSPACE_MANAGER_H_
« no previous file with comments | « ash/wm/stacking_controller.cc ('k') | ash/wm/workspace/workspace_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698