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

Unified Diff: ui/views/widget/desktop_aura/x11_desktop_window_move_client.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/x11_desktop_window_move_client.cc
diff --git a/ui/views/widget/desktop_aura/x11_desktop_window_move_client.cc b/ui/views/widget/desktop_aura/x11_desktop_window_move_client.cc
index 996982f8363af8dbb4819ee7667a55289e2e3c16..14c1d357297c4205a104c4cd4eae4e26fa38dec7 100644
--- a/ui/views/widget/desktop_aura/x11_desktop_window_move_client.cc
+++ b/ui/views/widget/desktop_aura/x11_desktop_window_move_client.cc
@@ -28,7 +28,8 @@ void X11DesktopWindowMoveClient::OnMouseMovement(const gfx::Point& screen_point,
int flags,
base::TimeTicks event_time) {
gfx::Point system_loc = screen_point - window_offset_;
- host_->SetBounds(gfx::Rect(system_loc, host_->GetBounds().size()));
+ host_->SetBoundsInPixel(
+ gfx::Rect(system_loc, host_->GetBoundsInPixel().size()));
}
void X11DesktopWindowMoveClient::OnMouseReleased() {

Powered by Google App Engine
This is Rietveld 408576698