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

Unified Diff: Source/core/html/canvas/CanvasPathMethods.idl

Issue 191923002: CanvasPathMethods should be shared with CRC2D and Path2D (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: layout test 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
Index: Source/core/html/canvas/CanvasPathMethods.idl
diff --git a/Source/core/html/canvas/CanvasPathMethods.h b/Source/core/html/canvas/CanvasPathMethods.idl
similarity index 63%
copy from Source/core/html/canvas/CanvasPathMethods.h
copy to Source/core/html/canvas/CanvasPathMethods.idl
index 2f0160ea1bfa01295941fb51c547dfa9fb7094a2..a6de85b6a45d4ee701c9ae1b831ae567d9eb8b80 100644
--- a/Source/core/html/canvas/CanvasPathMethods.h
+++ b/Source/core/html/canvas/CanvasPathMethods.idl
@@ -1,6 +1,5 @@
/*
- * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
- * Copyright (C) 2012, 2013 Adobe Systems Incorporated. All rights reserved.
+ * Copyright (C) 2014 Samsung Electronics, Inc. All rights reserved.
Inactive 2014/03/09 04:26:37 Please use this license for new files: http://www.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -26,37 +25,17 @@
* SUCH DAMAGE.
*/
-#ifndef CanvasPathMethods_h
-#define CanvasPathMethods_h
-
-#include "platform/graphics/Path.h"
-
-namespace WebCore {
-
-class ExceptionState;
-class FloatRect;
-
-class CanvasPathMethods {
-public:
- virtual ~CanvasPathMethods() { }
+[
+ NoInterfaceObject
+] interface CanvasPathMethods {
void closePath();
void moveTo(float x, float y);
Inactive 2014/03/09 04:26:37 A lot of arguments were optional for the methods o
void lineTo(float x, float y);
void quadraticCurveTo(float cpx, float cpy, float x, float y);
void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y);
- void arcTo(float x0, float y0, float x1, float y1, float radius, ExceptionState&);
- void arc(float x, float y, float radius, float startAngle, float endAngle, bool anticlockwise, ExceptionState&);
- void ellipse(float x, float y, float radiusX, float radiusY, float rotation, float startAngle, float endAngle, bool anticlockwise, ExceptionState&);
+ [RaisesException] void arcTo(float x1, float y1, float x2, float y2, float radius);
void rect(float x, float y, float width, float height);
-
- virtual bool isTransformInvertible() const { return true; }
-
-protected:
- CanvasPathMethods() { }
- CanvasPathMethods(const Path& path) : m_path(path) { }
- Path m_path;
+ [RaisesException] void arc(float x, float y, float radius, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise);
+ [RaisesException] void ellipse(float x, float y, float radiusX, float radiusY, float rotation, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise);
Inactive 2014/03/09 04:26:37 So this method is now exposed on Path as well. Thi
};
-}
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698