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

Unified Diff: ui/gfx/canvas.h

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build 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
« no previous file with comments | « ui/gfx/blit_unittest.cc ('k') | ui/gfx/canvas.cc » ('j') | ui/gfx/point.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.h
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h
index 16d7ae5506d963d4b076ca5ffe6906b5c0b6a45b..658b81fb1dc0c8ab29fbc10a8b5a1d678da0fac8 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -196,7 +196,7 @@ class UI_EXPORT Canvas {
// |bounds| parameter, and returns true if it is non empty.
bool GetClipBounds(gfx::Rect* bounds);
- void Translate(const gfx::Point& point);
+ void Translate(const gfx::Vector2d& offset);
void Scale(int x_scale, int y_scale);
« no previous file with comments | « ui/gfx/blit_unittest.cc ('k') | ui/gfx/canvas.cc » ('j') | ui/gfx/point.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698