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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2D.h

Issue 178673002: Rename Path to Path2D (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@path
Patch Set: Merge to head which includes isPoint and addPath changes. Created 6 years, 9 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 | « Source/core/core.gypi ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/CanvasRenderingContext2D.h
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.h b/Source/core/html/canvas/CanvasRenderingContext2D.h
index db2dfc502d187fd87c77f73a33ae0a663b4ea638..bde927981fa0299b5fd3e3d1776d9244e4b9fef6 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.h
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.h
@@ -50,7 +50,7 @@ namespace WebCore {
class CanvasGradient;
class CanvasPattern;
class CanvasStyle;
-class DOMPath;
+class Path2D;
class Element;
class ExceptionState;
class FloatRect;
@@ -146,22 +146,22 @@ public:
void beginPath();
- PassRefPtr<DOMPath> currentPath();
- void setCurrentPath(DOMPath*);
+ PassRefPtr<Path2D> currentPath();
+ void setCurrentPath(Path2D*);
void fill(const String& winding = "nonzero");
- void fill(DOMPath*, ExceptionState&);
- void fill(DOMPath*, const String& winding, ExceptionState&);
+ void fill(Path2D*, ExceptionState&);
+ void fill(Path2D*, const String& winding, ExceptionState&);
void stroke();
- void stroke(DOMPath*, ExceptionState&);
+ void stroke(Path2D*, ExceptionState&);
void clip(const String& winding = "nonzero");
- void clip(DOMPath*, ExceptionState&);
- void clip(DOMPath*, const String& winding, ExceptionState&);
+ void clip(Path2D*, ExceptionState&);
+ void clip(Path2D*, const String& winding, ExceptionState&);
bool isPointInPath(const float x, const float y, const String& winding = "nonzero");
- bool isPointInPath(DOMPath*, const float x, const float y, ExceptionState&);
- bool isPointInPath(DOMPath*, const float x, const float y, const String& winding, ExceptionState&);
+ bool isPointInPath(Path2D*, const float x, const float y, ExceptionState&);
+ bool isPointInPath(Path2D*, const float x, const float y, const String& winding, ExceptionState&);
bool isPointInStroke(const float x, const float y);
- bool isPointInStroke(DOMPath*, const float x, const float y, ExceptionState&);
+ bool isPointInStroke(Path2D*, const float x, const float y, ExceptionState&);
void clearRect(float x, float y, float width, float height);
void fillRect(float x, float y, float width, float height);
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698