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

Unified Diff: tools/dom/scripts/htmldartgenerator.py

Issue 1233083004: Fixed Dictionary and Event hookup w/o --gen-interop (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Merged Created 5 years, 5 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 | « tools/dom/scripts/generator.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/htmldartgenerator.py
diff --git a/tools/dom/scripts/htmldartgenerator.py b/tools/dom/scripts/htmldartgenerator.py
index 573e768984e67543b2fc608ab2d75eb0da27052a..3edf60ec1f61688b67bf74d1ad23a9d0cc96c691 100644
--- a/tools/dom/scripts/htmldartgenerator.py
+++ b/tools/dom/scripts/htmldartgenerator.py
@@ -68,7 +68,7 @@ class HtmlDartGenerator(object):
"\n $TYPE get on =>\n new $TYPE(this);\n",
TYPE=events_class_name)
- def AddMembers(self, interface, declare_only=False):
+ def AddMembers(self, interface, declare_only=False, dart_js_interop=False):
for const in sorted(interface.constants, ConstantOutputOrder):
self.AddConstant(const)
@@ -102,7 +102,7 @@ class HtmlDartGenerator(object):
for id in sorted(operationsByName.keys()):
operations = operationsByName[id]
info = AnalyzeOperation(interface, operations)
- self.AddOperation(info, declare_only)
+ self.AddOperation(info, declare_only, dart_js_interop)
if ('%s.%s' % (interface.id, info.declared_name) in
convert_to_future_members):
self.AddOperation(ConvertToFuture(info), declare_only)
@@ -309,7 +309,7 @@ class HtmlDartGenerator(object):
else:
self.EmitAttribute(attribute, attr_name, read_only)
- def AddOperation(self, info, declare_only=False):
+ def AddOperation(self, info, declare_only=False, dart_js_interop=False):
""" Adds an operation to the generated class.
Arguments:
info - The operation info of the operation to be added.
@@ -334,7 +334,7 @@ class HtmlDartGenerator(object):
self.DeclareOperation(info,
self.SecureOutputType(info.type_name), method_name)
else:
- self.EmitOperation(info, method_name)
+ self.EmitOperation(info, method_name, dart_js_interop)
def _GenerateOverloadDispatcher(self,
info,
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698