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

Unified Diff: ui/aura_shell/workspace/workspace_manager.h

Issue 8400067: Fixes bug where windows weren't being moved and resized if the desktop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge and incorporate feedback Created 9 years, 2 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 | « ui/aura_shell/workspace/workspace_controller.cc ('k') | ui/aura_shell/workspace/workspace_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/workspace/workspace_manager.h
diff --git a/ui/aura_shell/workspace/workspace_manager.h b/ui/aura_shell/workspace/workspace_manager.h
index a9a7123da63bdfefef2b32b60c5e8eafceab4dcc..28cbab51574e8cd301485190653290e0c13a0943 100644
--- a/ui/aura_shell/workspace/workspace_manager.h
+++ b/ui/aura_shell/workspace/workspace_manager.h
@@ -9,8 +9,6 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
-#include "base/gtest_prod_util.h"
-#include "ui/aura/desktop_observer.h"
#include "ui/aura_shell/aura_shell_export.h"
#include "ui/gfx/insets.h"
#include "ui/gfx/size.h"
@@ -25,10 +23,11 @@ class Rect;
}
namespace aura_shell {
+namespace internal {
class Workspace;
// WorkspaceManager manages multiple workspaces in the desktop.
-class AURA_SHELL_EXPORT WorkspaceManager : public aura::DesktopObserver {
+class AURA_SHELL_EXPORT WorkspaceManager {
public:
explicit WorkspaceManager(aura::Window* viewport);
virtual ~WorkspaceManager();
@@ -60,15 +59,11 @@ class AURA_SHELL_EXPORT WorkspaceManager : public aura::DesktopObserver {
// Rotate windows by moving |source| window to the position of |target|.
void RotateWindows(aura::Window* source, aura::Window* target);
- // Overridden from aura::DesktopObserver:
- virtual void OnDesktopResized(const gfx::Size& new_size) OVERRIDE;
- virtual void OnActiveWindowChanged(aura::Window* active) OVERRIDE;
+ // Sets the size of a single workspace (all workspaces have the same size).
+ void SetWorkspaceSize(const gfx::Size& workspace_size);
private:
friend class Workspace;
- FRIEND_TEST_ALL_PREFIXES(WorkspaceManagerTest, Overview);
- FRIEND_TEST_ALL_PREFIXES(WorkspaceManagerTest, LayoutWorkspaces);
- FRIEND_TEST_ALL_PREFIXES(WorkspaceManagerTest, FindRotateWindow);
void AddWorkspace(Workspace* workspace);
void RemoveWorkspace(Workspace* workspace);
@@ -101,6 +96,7 @@ class AURA_SHELL_EXPORT WorkspaceManager : public aura::DesktopObserver {
DISALLOW_COPY_AND_ASSIGN(WorkspaceManager);
};
+} // namespace internal
} // namespace aura_shell
#endif // UI_AURA_SHELL_WORKSPACE_WORKSPACE_MANAGER_H_
« no previous file with comments | « ui/aura_shell/workspace/workspace_controller.cc ('k') | ui/aura_shell/workspace/workspace_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698