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

Unified Diff: ui/wm/core/default_screen_position_client.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 | « ui/wm/core/capture_controller_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/default_screen_position_client.cc
diff --git a/ui/wm/core/default_screen_position_client.cc b/ui/wm/core/default_screen_position_client.cc
index 67520bb5ce654c088ed47b76c25b94acf7622c7f..4d7a45359d4f805a6d1172b08380e1a0757dff77 100644
--- a/ui/wm/core/default_screen_position_client.cc
+++ b/ui/wm/core/default_screen_position_client.cc
@@ -21,7 +21,7 @@ gfx::Point DefaultScreenPositionClient::GetOriginInScreen(
const aura::Window* root_window) {
aura::Window* window = const_cast<aura::Window*>(root_window);
display::Screen* screen = display::Screen::GetScreen();
- gfx::Rect screen_bounds = root_window->GetHost()->GetBounds();
+ gfx::Rect screen_bounds = root_window->GetHost()->GetBoundsInPixels();
gfx::Rect dip_bounds = screen->ScreenToDIPRectInWindow(window, screen_bounds);
return dip_bounds.origin();
}
« no previous file with comments | « ui/wm/core/capture_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698