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

Unified Diff: lib/html/doc/interface/EventTarget.dartdoc

Issue 10544064: Add dummy dart:html library for documentation. (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
« no previous file with comments | « lib/html/doc/interface/EventSource.dartdoc ('k') | lib/html/doc/interface/FieldSetElement.dartdoc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/doc/interface/EventTarget.dartdoc
diff --git a/lib/html/doc/interface/EventTarget.dartdoc b/lib/html/doc/interface/EventTarget.dartdoc
new file mode 100644
index 0000000000000000000000000000000000000000..2f702ab33eb616f01a6875a8772b7e4835e2e3db
--- /dev/null
+++ b/lib/html/doc/interface/EventTarget.dartdoc
@@ -0,0 +1,36 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// WARNING:
+// This file contains documentation that is merged into the real source.
+// Do not make code changes here.
+
+interface EventListenerList {
+ EventListenerList add(EventListener handler, [bool useCapture]);
+
+ EventListenerList remove(EventListener handler, [bool useCapture]);
+
+ bool dispatch(Event evt);
+}
+
+interface Events {
+ EventListenerList operator [](String type);
+}
+
+/// @domName EventTarget
+interface EventTarget {
+
+ /** @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent */
+ final Events on;
+
+ /** @domName EventTarget.addEventListener */
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
+
+ /** @domName EventTarget.dispatchEvent */
+ bool $dom_dispatchEvent(Event event);
+
+ /** @domName EventTarget.removeEventListener */
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
+
+}
« no previous file with comments | « lib/html/doc/interface/EventSource.dartdoc ('k') | lib/html/doc/interface/FieldSetElement.dartdoc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698