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

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

Issue 2705213003: Refined types for most HtmlElement factory constructors (Closed)
Patch Set: Created 3 years, 10 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: tools/dom/scripts/systemnative.py
diff --git a/tools/dom/scripts/systemnative.py b/tools/dom/scripts/systemnative.py
index 659d24cbe815a55cd0277597d817b5657121a197..1df7f8cf952559d865f0ba709e3cc761d1e353e3 100644
--- a/tools/dom/scripts/systemnative.py
+++ b/tools/dom/scripts/systemnative.py
@@ -308,6 +308,13 @@ class DartiumBackend(HtmlDartGenerator):
def IsConstructorArgumentOptional(self, argument):
return IsOptional(argument)
+ def MakeFactoryCall(self, factory, method, arguments, constructor_info):
+ return emitter.Format(
+ '$FACTORY.$METHOD($ARGUMENTS)',
+ FACTORY=factory,
+ METHOD=method,
+ ARGUMENTS=arguments)
+
def EmitStaticFactoryOverload(self, constructor_info, name, arguments):
constructor_callback_cpp_name = name + 'constructorCallback'
self._EmitConstructorInfrastructure(
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698