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

Unified Diff: ash/wm/workspace_controller.h

Issue 10852003: Changes all non-workspace code to talk to WorkspaceManager via (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more constness 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_types.h ('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 d7d631625c05f7a861bfa49564105402f81025d2..ea7710eb6b2822ebea898123bb26ca7b15795d41 100644
--- a/ash/wm/workspace_controller.h
+++ b/ash/wm/workspace_controller.h
@@ -6,6 +6,7 @@
#define ASH_WM_WORKSPACE_CONTROLLER_H_
#include "ash/ash_export.h"
+#include "ash/wm/workspace/workspace_types.h"
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "ui/aura/client/activation_change_observer.h"
@@ -17,6 +18,7 @@ class Window;
namespace ash {
namespace internal {
+class ShelfLayoutManager;
class WorkspaceControllerTestHelper;
class WorkspaceEventFilter;
class WorkspaceLayoutManager;
@@ -25,19 +27,23 @@ class WorkspaceManager;
// WorkspaceController acts as a central place that ties together all the
// various workspace pieces: WorkspaceManager, WorkspaceLayoutManager and
// WorkspaceEventFilter.
-class ASH_EXPORT WorkspaceController :
- public aura::client::ActivationChangeObserver {
+class ASH_EXPORT WorkspaceController
+ : public aura::client::ActivationChangeObserver {
public:
explicit WorkspaceController(aura::Window* viewport);
virtual ~WorkspaceController();
- // Returns the workspace manager that this controller owns.
- WorkspaceManager* workspace_manager() {
- return workspace_manager_.get();
- }
+ // Returns true if in maximized or fullscreen mode.
+ bool IsInMaximizedMode() const;
// Sets the size of the grid.
void SetGridSize(int grid_size);
+ int GetGridSize() const;
+
+ // Returns the current window state.
+ WorkspaceWindowState GetWindowState() const;
+
+ void SetShelf(ShelfLayoutManager* shelf);
// aura::client::ActivationChangeObserver overrides:
virtual void OnWindowActivated(aura::Window* window,
« no previous file with comments | « ash/wm/workspace/workspace_types.h ('k') | ash/wm/workspace_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698