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

Unified Diff: ash/display/display_controller.cc

Issue 128753002: Remove SetHostSize/Bounds from RootWindow in favor of just calling SetBounds() on host() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: weirdness Created 6 years, 11 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 | « no previous file | ash/display/mirror_window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_controller.cc
diff --git a/ash/display/display_controller.cc b/ash/display/display_controller.cc
index e7bef65b5d7f2475207facd98f8795dd5a124fad..a6cff54326ad0bfd0f1eff137cdc9c23c71d525e 100644
--- a/ash/display/display_controller.cc
+++ b/ash/display/display_controller.cc
@@ -616,7 +616,7 @@ void DisplayController::OnDisplayBoundsChanged(const gfx::Display& display) {
DCHECK(!display_info.bounds_in_native().IsEmpty());
aura::WindowEventDispatcher* dispatcher =
root_windows_[display.id()]->GetDispatcher();
- dispatcher->SetHostBounds(display_info.bounds_in_native());
+ dispatcher->host()->SetBounds(display_info.bounds_in_native());
SetDisplayPropertiesOnHostWindow(dispatcher, display);
}
@@ -632,7 +632,7 @@ void DisplayController::OnDisplayAdded(const gfx::Display& display) {
GetDisplayManager()->GetDisplayInfo(display.id());
aura::WindowEventDispatcher* dispatcher =
root_windows_[display.id()]->GetDispatcher();
- dispatcher->SetHostBounds(display_info.bounds_in_native());
+ dispatcher->host()->SetBounds(display_info.bounds_in_native());
SetDisplayPropertiesOnHostWindow(dispatcher, display);
} else {
if (primary_display_id == gfx::Display::kInvalidDisplayID)
« no previous file with comments | « no previous file | ash/display/mirror_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698