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

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

Issue 21607003: Add Event delegation to Elements and groups of elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/htmleventgenerator.py ('k') | tools/dom/src/EventStreamProvider.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/systemhtml.py
diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py
index a954ea2d33dbd6e0c6fc16dab02b97e66415a6af..b8894890e7f758bf86b6da3060be3f6a2234b62a 100644
--- a/tools/dom/scripts/systemhtml.py
+++ b/tools/dom/scripts/systemhtml.py
@@ -570,6 +570,17 @@ class HtmlDartInterfaceGenerator(object):
MIXINS=mixins_str,
DOMNAME=self._interface.doc_js_name,
NATIVESPEC=native_spec)
+ stream_getter_signatures_emitter = None
+ element_stream_getters_emitter = None
+ if type(self._implementation_members_emitter) == tuple:
+ # We add event stream getters for both Element and ElementList, so in
+ # impl_Element.darttemplate, we have two additional "holes" for emitters
+ # to fill in, with small variations. These store these specialized
+ # emitters.
+ stream_getter_signatures_emitter = self._implementation_members_emitter[0]
+ element_stream_getters_emitter = self._implementation_members_emitter[1]
+ self._implementation_members_emitter = \
+ self._implementation_members_emitter[2]
self._backend.StartInterface(self._implementation_members_emitter)
self._backend.EmitHelpers(base_class)
@@ -594,7 +605,8 @@ class HtmlDartInterfaceGenerator(object):
self._interface,
[],
self._implementation_members_emitter,
- self._library_name)
+ self._library_name, stream_getter_signatures_emitter,
+ element_stream_getters_emitter)
self._backend.FinishInterface()
def _ImplementationEmitter(self):
« no previous file with comments | « tools/dom/scripts/htmleventgenerator.py ('k') | tools/dom/src/EventStreamProvider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698