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

Unified Diff: ash/wm/default_state.cc

Issue 1921883002: Removes WindowState::aura_window() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix windows build Created 4 years, 8 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/default_state.h ('k') | ash/wm/dock/docked_window_layout_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/default_state.cc
diff --git a/ash/wm/default_state.cc b/ash/wm/default_state.cc
index 5d82b8033663484dfe7bd6aab40b62a87780f2b3..08a73bf939b0344190e4f515f9a8c021cdde38e2 100644
--- a/ash/wm/default_state.cc
+++ b/ash/wm/default_state.cc
@@ -5,7 +5,6 @@
#include "ash/wm/default_state.h"
#include "ash/shell_window_ids.h"
-#include "ash/wm/aura/wm_window_aura.h"
#include "ash/wm/common/window_animation_types.h"
#include "ash/wm/common/window_parenting_utils.h"
#include "ash/wm/common/window_positioning_utils.h"
@@ -14,12 +13,11 @@
#include "ash/wm/common/wm_globals.h"
#include "ash/wm/common/wm_root_window_controller.h"
#include "ash/wm/common/wm_screen_util.h"
+#include "ash/wm/common/wm_window.h"
#include "ash/wm/dock/docked_window_layout_manager.h"
#include "ash/wm/window_state.h"
#include "ash/wm/window_state_delegate.h"
-#include "ui/aura/window.h"
#include "ui/gfx/display.h"
-#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/screen.h"
namespace ash {
@@ -43,7 +41,7 @@ bool IsMinimizedWindowState(const WindowStateType state_type) {
void MoveToDisplayForRestore(WindowState* window_state) {
if (!window_state->HasRestoreBounds())
return;
- const gfx::Rect& restore_bounds = window_state->GetRestoreBoundsInScreen();
+ const gfx::Rect restore_bounds = window_state->GetRestoreBoundsInScreen();
// Move only if the restore bounds is outside of
// the display. There is no information about in which
« no previous file with comments | « ash/wm/default_state.h ('k') | ash/wm/dock/docked_window_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698