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

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

Issue 795833004: Use dictionaries for context creation attributes. Eliminate custom bindings. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years 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/Canvas2DContextAttributes.idl
diff --git a/Source/core/html/canvas/Canvas2DContextAttributes.idl b/Source/core/html/canvas/Canvas2DContextAttributes.idl
index f7dfab1fa373c4fbd805806a854dcd74b71a0644..4de5f9bd5e9a4fafd0bc9c2451c0f4ca2b791544 100644
--- a/Source/core/html/canvas/Canvas2DContextAttributes.idl
+++ b/Source/core/html/canvas/Canvas2DContextAttributes.idl
@@ -24,10 +24,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-[
- NoInterfaceObject,
- WillBeGarbageCollected,
-] interface Canvas2DContextAttributes {
- attribute boolean alpha;
- [RuntimeEnabled=ExperimentalCanvasFeatures] attribute DOMString storage;
+dictionary Canvas2DContextAttributes {
+ boolean alpha = true;
+ // Note: the bindings generator ignores the RuntimeEnabled
+ // extended attribute for dictionary members.
+ [RuntimeEnabled=ExperimentalCanvasFeatures] DOMString storage;
};
« no previous file with comments | « Source/core/html/canvas/Canvas2DContextAttributes.cpp ('k') | Source/core/html/canvas/CanvasContextAttributes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698