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

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

Issue 10696035: Extract common logic for element factory constructors generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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
« lib/dom/scripts/systemhtml.py ('K') | « lib/dom/scripts/systemhtml.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/systemnative.py
diff --git a/lib/dom/scripts/systemnative.py b/lib/dom/scripts/systemnative.py
index a44b30f45b40c44ce27cc7b74b7a8fed874bc62c..bb99731a298c52cfdedc9a21a32a3bfe381eb6a7 100644
--- a/lib/dom/scripts/systemnative.py
+++ b/lib/dom/scripts/systemnative.py
@@ -229,6 +229,9 @@ class NativeImplementationGenerator(systembase.BaseGenerator):
self._html_system = self._system._html_system
self._html_renames = self._html_system._html_renames
+ def FactoryConstructorElementClassName(self):
+ return self._HTMLInterfaceName(self._interface.id)
+
def StartInterface(self):
self._interface_type_info = GetIDLTypeInfo(self._interface.id)
self._members_emitter = emitter.Emitter()
@@ -242,9 +245,6 @@ class NativeImplementationGenerator(systembase.BaseGenerator):
def _GenerateConstructors(self):
html_interface_name = self._HTMLInterfaceName(self._interface.id)
- infos = HtmlElementConstructorInfos(html_interface_name)
- if infos:
- self._EmitHtmlElementFactoryConstructors(infos, html_interface_name)
if not self._IsConstructable():
return
@@ -342,14 +342,6 @@ class NativeImplementationGenerator(systembase.BaseGenerator):
raises_exceptions=raises_exceptions,
runtime_check=runtime_check)
- def _EmitHtmlElementFactoryConstructors(self, infos, html_interface_name):
- EmitHtmlElementFactoryConstructors(
- self._system._EmitterForFactoryProviderBody(
- infos[0].factory_provider_name),
- infos,
- html_interface_name,
- html_interface_name)
-
def _GenerateEvents(self):
if self._interface.id == 'DocumentFragment':
# Interface DocumentFragment extends Element in dart:html but this fact
« lib/dom/scripts/systemhtml.py ('K') | « lib/dom/scripts/systemhtml.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698