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

Unified Diff: ui/gfx/vector2d_f.h

Issue 16255010: Hookup android_webview scroll offset delegation to Java side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 7 years, 6 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: ui/gfx/vector2d_f.h
diff --git a/ui/gfx/vector2d_f.h b/ui/gfx/vector2d_f.h
index fdd3a9e30841cc0681ebaf509d0a9d1ba17dde4a..685c15d79023327c4724a34ecf3d47a492e3a0af 100644
--- a/ui/gfx/vector2d_f.h
+++ b/ui/gfx/vector2d_f.h
@@ -70,6 +70,10 @@ inline bool operator==(const Vector2dF& lhs, const Vector2dF& rhs) {
return lhs.x() == rhs.x() && lhs.y() == rhs.y();
}
+inline bool operator!=(const Vector2dF& lhs, const Vector2dF& rhs) {
+ return lhs.x() != rhs.x() || lhs.y() != rhs.y();
joth 2013/06/18 03:19:50 return !(operator==(lhs, rhs)); I'm sure there's
mkosiba (inactive) 2013/06/18 18:09:25 Done.
+}
+
inline Vector2dF operator-(const Vector2dF& v) {
return Vector2dF(-v.x(), -v.y());
}

Powered by Google App Engine
This is Rietveld 408576698