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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.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/omnibox/omnibox_view_win.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
index 62b4c97d279191a424a5f15d4a13cc66a2ef9e77..85aaae4a8b217cd534586598b237d6d0efe02de0 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
@@ -121,8 +121,8 @@ struct AutocompleteEditState : public base::SupportsUserData::Data {
// Returns true if the current point is far enough from the origin that it
// would be considered a drag.
bool IsDrag(const POINT& origin, const POINT& current) {
- return views::View::ExceededDragThreshold(current.x - origin.x,
- current.y - origin.y);
+ return views::View::ExceededDragThreshold(
+ gfx::Point(current) - gfx::Point(origin));
}
// Write |text| and an optional |url| to the clipboard.

Powered by Google App Engine
This is Rietveld 408576698