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

Side by Side Diff: chrome/browser/ui/window_sizer/window_sizer_ash.cc

Issue 2895713002: [mus+ash] Removes WmWindow from ash/wm/mru_window_tracker and overview mode (Closed)
Patch Set: Address nits, unit_tests target compiles Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/window_sizer/window_sizer.h" 5 #include "chrome/browser/ui/window_sizer/window_sizer.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/wm/window_positioner.h" 8 #include "ash/wm/window_positioner.h"
9 #include "ash/wm/window_state.h" 9 #include "ash/wm/window_state.h"
10 #include "ash/wm_window.h" 10 #include "ash/wm_window.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 bounds_in_screen->AdjustToFit(display.work_area()); 103 bounds_in_screen->AdjustToFit(display.work_area());
104 return; 104 return;
105 } 105 }
106 106
107 // The |browser_window| is non NULL when this is called after 107 // The |browser_window| is non NULL when this is called after
108 // browser's aura window is created. 108 // browser's aura window is created.
109 aura::Window* browser_window = 109 aura::Window* browser_window =
110 browser_->window() ? browser_->window()->GetNativeWindow() : NULL; 110 browser_->window() ? browser_->window()->GetNativeWindow() : NULL;
111 111
112 ash::WindowPositioner::GetBoundsAndShowStateForNewWindow( 112 ash::WindowPositioner::GetBoundsAndShowStateForNewWindow(
113 ash::WmWindow::Get(browser_window), is_saved_bounds, passed_show_state, 113 browser_window, is_saved_bounds, passed_show_state, bounds_in_screen,
114 bounds_in_screen, show_state); 114 show_state);
115 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698