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

Unified Diff: tools/dom/templates/html/impl/impl_EventTarget.darttemplate

Issue 26135004: Adding ElementEventStream.capture (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_EventTarget.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_EventTarget.darttemplate b/tools/dom/templates/html/impl/impl_EventTarget.darttemplate
index 06b24fb385247124df742d0100f06e8e8561f33e..1630878110b9cb4978c19215865912a37fe98437 100644
--- a/tools/dom/templates/html/impl/impl_EventTarget.darttemplate
+++ b/tools/dom/templates/html/impl/impl_EventTarget.darttemplate
@@ -51,6 +51,17 @@ class Events {
}
}
+class ElementEvents extends Events {
+ /* Raw event target. */
+ final Element _ptr;
+
+ ElementEvents(Element ptr) : this._ptr = ptr, super(ptr);
+
+ Stream operator [](String type) {
+ return new _ElementEventStreamImpl(_ptr, type, false);
+ }
+}
+
/**
* Base class for all browser objects that support events.
*
« no previous file with comments | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698