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

Unified Diff: sdk/lib/html/scripts/systemnative.py

Issue 11679007: Adding support checks for partially supported element types and updating tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « sdk/lib/html/scripts/systemhtml.py ('k') | sdk/lib/html/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/scripts/systemnative.py
diff --git a/sdk/lib/html/scripts/systemnative.py b/sdk/lib/html/scripts/systemnative.py
index 3b20eab4e600a51dcdf8f0aa6fc05c09e33cb857..508d9c672e4b67b2633c4e349c2995c47779b3bc 100644
--- a/sdk/lib/html/scripts/systemnative.py
+++ b/sdk/lib/html/scripts/systemnative.py
@@ -10,6 +10,7 @@ import emitter
import os
from generator import *
from htmldartgenerator import *
+from systemhtml import js_support_checks
class DartiumBackend(HtmlDartGenerator):
"""Generates Dart implementation for one DOM IDL interface."""
@@ -200,6 +201,14 @@ class DartiumBackend(HtmlDartGenerator):
self._interface.id,
'ConstructorRaisesException' in ext_attrs)
+ def HasSupportCheck(self):
+ # Need to omit a support check if it is conditional in JS.
+ return self._interface.doc_js_name in js_support_checks
+
+ def GetSupportCheck(self):
+ # Assume that everything is supported on Dartium.
+ return 'true'
+
def FinishInterface(self):
self._GenerateCPPHeader()
« no previous file with comments | « sdk/lib/html/scripts/systemhtml.py ('k') | sdk/lib/html/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698