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

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

Issue 9570037: Double clicking the resize handle should expand window along that axis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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_event_filter_unittest.cc ('k') | ui/aura/test/test_window_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_manager.cc
===================================================================
--- ash/wm/workspace/workspace_manager.cc (revision 124527)
+++ ash/wm/workspace/workspace_manager.cc (working copy)
@@ -370,7 +370,7 @@
Workspace* new_workspace = NULL;
if (Workspace::TypeForWindow(window) == Workspace::TYPE_MAXIMIZED) {
// Unmaximized -> maximized; create a new workspace.
- SetRestoreBounds(window, window->bounds());
+ SetRestoreBoundsIfNotSet(window);
current_workspace->RemoveWindow(window);
new_workspace = CreateWorkspace(Workspace::TYPE_MAXIMIZED);
new_workspace->AddWindowAfter(window, NULL);
« no previous file with comments | « ash/wm/workspace/workspace_event_filter_unittest.cc ('k') | ui/aura/test/test_window_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698