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

Unified Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

Issue 2524873002: Rename WindowTreeHost G|SetBounds to indicate they are in pixels. (Closed)
Patch Set: 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
Index: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
index 68d3682b2d4985b605d78cb6edea69a2d0221686..001a7a1d5b1907b541268348ad06758818c0beda 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
@@ -686,7 +686,8 @@ void DesktopNativeWidgetAura::SetBounds(const gfx::Rect& bounds) {
aura::Window* root = host_->window();
display::Screen* screen = display::Screen::GetScreen();
gfx::Rect bounds_in_pixels = screen->DIPToScreenRectInWindow(root, bounds);
- desktop_window_tree_host_->AsWindowTreeHost()->SetBounds(bounds_in_pixels);
+ desktop_window_tree_host_->AsWindowTreeHost()->SetBoundsInPixel(
+ bounds_in_pixels);
}
void DesktopNativeWidgetAura::SetSize(const gfx::Size& size) {

Powered by Google App Engine
This is Rietveld 408576698