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

Unified Diff: ash/root_window_controller.cc

Issue 2901663003: chromeos: converts WindowState to aura::Window (Closed)
Patch Set: moar 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 side-by-side diff with in-line comments
Download patch
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index e469bf0d2a82001f1f6d1a08913661aad13added..b47c55bd22ee9b33f335c38213f920e2f2966c31 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -175,7 +175,7 @@ void ReparentWindow(aura::Window* window, aura::Window* new_parent) {
gfx::Rect local_bounds;
if (update_bounds) {
- local_bounds = state->window()->GetBounds();
+ local_bounds = state->window()->bounds();
MoveOriginRelativeToSize(src_size, dst_size, &local_bounds);
local_bounds.AdjustToFit(work_area_in_new_parent);
}

Powered by Google App Engine
This is Rietveld 408576698