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

Unified Diff: ui/gfx/rect_base.h

Issue 11293194: ui: Prefer +/- operators to apply offsets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: floats Created 8 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
« .gitmodules ('K') | « ui/gfx/rect.cc ('k') | ui/gfx/rect_base_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/rect_base.h
diff --git a/ui/gfx/rect_base.h b/ui/gfx/rect_base.h
index 0a3298c06b67fbbdb6209ca30c5647fc1bfc280c..3ad12c8b245b2cccc0e81706af8f4123083009d0 100644
--- a/ui/gfx/rect_base.h
+++ b/ui/gfx/rect_base.h
@@ -69,6 +69,8 @@ class UI_EXPORT RectBase {
void Offset(const VectorClass& distance) {
Offset(distance.x(), distance.y());
}
+ void operator+=(const VectorClass& offset);
+ void operator-=(const VectorClass& offset);
InsetsClass InsetsFrom(const Class& inner) const {
return InsetsClass(inner.y() - y(),
« .gitmodules ('K') | « ui/gfx/rect.cc ('k') | ui/gfx/rect_base_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698