diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-14 20:58:44 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-14 20:58:44 +0000 |
commit | 96b667d273c25e55150785848942c51f1a98851b (patch) | |
tree | 21ad2f8bc3a2148a517998f4ebb0157b22a75082 /base | |
parent | df40752a0913948b49086fee421b0d019f7de8da (diff) | |
download | chromium_src-96b667d273c25e55150785848942c51f1a98851b.zip chromium_src-96b667d273c25e55150785848942c51f1a98851b.tar.gz chromium_src-96b667d273c25e55150785848942c51f1a98851b.tar.bz2 |
Change all ConvertPointTo* methods to use gfx::Point instead of CPoint.
http://crbug.com/2186
Review URL: http://codereview.chromium.org/7317
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3365 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/gfx/point.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/gfx/point.h b/base/gfx/point.h index a70807e..c36c1d4d 100644 --- a/base/gfx/point.h +++ b/base/gfx/point.h @@ -45,6 +45,11 @@ class Point { 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_; } |