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

Unified Diff: ash/display/window_tree_host_manager.cc

Issue 2524873002: Rename WindowTreeHost G|SetBounds to indicate they are in pixels. (Closed)
Patch Set: rebase Created 4 years, 1 month 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/display/unified_mouse_warp_controller.cc ('k') | ash/host/ash_window_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/window_tree_host_manager.cc
diff --git a/ash/display/window_tree_host_manager.cc b/ash/display/window_tree_host_manager.cc
index f4b583aa8082cffc0fa6eb296b808370a331d4b5..76379889b9799e4a13ca15d051085e4209e955ce 100644
--- a/ash/display/window_tree_host_manager.cc
+++ b/ash/display/window_tree_host_manager.cc
@@ -655,7 +655,8 @@ void WindowTreeHostManager::OnDisplayAdded(const display::Display& display) {
const display::ManagedDisplayInfo& display_info =
GetDisplayManager()->GetDisplayInfo(display.id());
AshWindowTreeHost* ash_host = window_tree_hosts_[display.id()];
- ash_host->AsWindowTreeHost()->SetBounds(display_info.bounds_in_native());
+ ash_host->AsWindowTreeHost()->SetBoundsInPixels(
+ display_info.bounds_in_native());
SetDisplayPropertiesOnHost(ash_host, display);
} else {
if (primary_display_id == display::kInvalidDisplayId)
@@ -737,7 +738,8 @@ void WindowTreeHostManager::OnDisplayMetricsChanged(
GetDisplayManager()->GetDisplayInfo(display.id());
DCHECK(!display_info.bounds_in_native().IsEmpty());
AshWindowTreeHost* ash_host = window_tree_hosts_[display.id()];
- ash_host->AsWindowTreeHost()->SetBounds(display_info.bounds_in_native());
+ ash_host->AsWindowTreeHost()->SetBoundsInPixels(
+ display_info.bounds_in_native());
SetDisplayPropertiesOnHost(ash_host, display);
}
@@ -747,7 +749,8 @@ void WindowTreeHostManager::OnHostResized(const aura::WindowTreeHost* host) {
const_cast<aura::Window*>(host->window()));
display::DisplayManager* display_manager = GetDisplayManager();
- if (display_manager->UpdateDisplayBounds(display.id(), host->GetBounds())) {
+ if (display_manager->UpdateDisplayBounds(display.id(),
+ host->GetBoundsInPixels())) {
mirror_window_controller_->UpdateWindow();
cursor_window_controller_->UpdateContainer();
}
« no previous file with comments | « ash/display/unified_mouse_warp_controller.cc ('k') | ash/host/ash_window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698