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

Unified Diff: chrome/browser/ui/views/constrained_window_views.cc

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderText fixup Created 8 years, 2 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
Index: chrome/browser/ui/views/constrained_window_views.cc
diff --git a/chrome/browser/ui/views/constrained_window_views.cc b/chrome/browser/ui/views/constrained_window_views.cc
index 3b4ae1a61112e67b019eaf7119e7288972dc4d3e..4e26cc5d74c1e313102423684b005c52a8609694 100644
--- a/chrome/browser/ui/views/constrained_window_views.cc
+++ b/chrome/browser/ui/views/constrained_window_views.cc
@@ -751,5 +751,5 @@ void ConstrainedWindowViews::PositionChromeStyleWindow(const gfx::Size& size) {
return;
}
- SetBounds(gfx::Rect(point - gfx::Point(size.width() / 2, 0), size));
+ SetBounds(gfx::Rect(point - gfx::Vector2d(size.width() / 2, 0), size));
}

Powered by Google App Engine
This is Rietveld 408576698