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

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

Issue 9558004: Makes windows no longer open maximized by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to trunk Created 8 years, 10 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_layout_manager.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 8adf5b9658fa501bdb5515455c4d56d7da313094..dde10aaff4395891572d912d1a37e8b034ae8ffc 100644
--- a/ash/wm/workspace/workspace_manager.h
+++ b/ash/wm/workspace/workspace_manager.h
@@ -33,19 +33,12 @@ class WorkspaceManagerTest;
// WorkspaceManager manages multiple workspaces in the desktop.
class ASH_EXPORT WorkspaceManager : public aura::WindowObserver{
public:
- // If open_new_windows_maximized() is true and the size of the viewport is
- // smaller than this value, newly created windows are forced maximized.
- static const int kOpenMaximizedThreshold;
-
explicit WorkspaceManager(aura::Window* viewport);
virtual ~WorkspaceManager();
// Returns true if |window| should be managed by the WorkspaceManager.
bool IsManagedWindow(aura::Window* window) const;
- // Returns true if |window| should be maximized.
- bool ShouldMaximize(aura::Window* window) const;
-
// Adds/removes a window creating/destroying workspace as necessary.
void AddWindow(aura::Window* window);
void RemoveWindow(aura::Window* window);
@@ -75,16 +68,6 @@ class ASH_EXPORT WorkspaceManager : public aura::WindowObserver{
// TODO: maybe this should be set on WorkspaceLayoutManager.
aura::Window* ignored_window() { return ignored_window_; }
- // Sets whether newly added windows open maximized. This is only applicable if
- // the size of the root window is less than kOpenMaximizedThreshold. Default
- // is true.
- void set_open_new_windows_maximized(bool value) {
- open_new_windows_maximized_ = value;
- }
- bool open_new_windows_maximized() const {
- return open_new_windows_maximized_;
- }
-
// Sets the size of the grid. Newly added windows are forced to align to the
// size of the grid.
void set_grid_size(int size) { grid_size_ = size; }
@@ -185,9 +168,6 @@ class ASH_EXPORT WorkspaceManager : public aura::WindowObserver{
// See description above setter.
int grid_size_;
- // See description above setter.
- bool open_new_windows_maximized_;
-
// Owned by the Shell container window LauncherContainer. May be NULL.
ShelfLayoutManager* shelf_;
« no previous file with comments | « ash/wm/workspace/workspace_layout_manager.cc ('k') | ash/wm/workspace/workspace_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698