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

Unified Diff: base/gfx/point.h

Issue 7317: Change all ConvertPointTo* methods to use gfx::Point instead of CPoint.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_popup.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/gfx/point.h
===================================================================
--- base/gfx/point.h (revision 3347)
+++ base/gfx/point.h (working copy)
@@ -45,6 +45,11 @@
void set_x(int x) { x_ = x; }
void set_y(int y) { y_ = y; }
+ void Offset(int delta_x, int delta_y) {
+ x_ += delta_x;
+ y_ += delta_y;
+ }
+
bool operator==(const Point& rhs) const {
return x_ == rhs.x_ && y_ == rhs.y_;
}
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_popup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698