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: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 56423002: Added links and blurb for drag stuff. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 213589dada0aca0f72d9cff9f62403c920da5e65..1ff79c123ae36bee61e982bedf0f03f46b4874ad 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -8443,37 +8443,131 @@ abstract class ElementList<T extends Element> extends ListBase<T> {
@DocsEditable()
ElementStream<Event> get onDoubleClick;
- /// Stream of `drag` events handled by this [Element].
+ /**
+ * A stream of `drag` events fired when this element currently being dragged.
+ *
+ * A `drag` event is added to this stream as soon as the drag begins.
+ * A `drag` event is also added to this stream at intervals while the drag
+ * operation is still ongoing.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondrag')
@DocsEditable()
ElementStream<MouseEvent> get onDrag;
- /// Stream of `dragend` events handled by this [Element].
+ /**
+ * A stream of `dragend` events fired when this element completes a drag
+ * operation.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondragend')
@DocsEditable()
ElementStream<MouseEvent> get onDragEnd;
- /// Stream of `dragenter` events handled by this [Element].
+ /**
+ * A stream of `dragenter` events fired when a dragged object is first dragged
+ * over this element.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondragenter')
@DocsEditable()
ElementStream<MouseEvent> get onDragEnter;
- /// Stream of `dragleave` events handled by this [Element].
+ /**
+ * A stream of `dragleave` events fired when an object being dragged over this
+ * element leaves this element's target area.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondragleave')
@DocsEditable()
ElementStream<MouseEvent> get onDragLeave;
- /// Stream of `dragover` events handled by this [Element].
+ /**
+ * A stream of `dragover` events fired when a dragged object is currently
+ * being dragged over this element.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondragover')
@DocsEditable()
ElementStream<MouseEvent> get onDragOver;
- /// Stream of `dragstart` events handled by this [Element].
+ /**
+ * A stream of `dragstart` events fired when this element starts being
+ * dragged.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondragstart')
@DocsEditable()
ElementStream<MouseEvent> get onDragStart;
- /// Stream of `drop` events handled by this [Element].
+ /**
+ * A stream of `drop` events fired when a dragged object is dropped on this
+ * element.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondrop')
@DocsEditable()
ElementStream<MouseEvent> get onDrop;
@@ -8782,37 +8876,131 @@ class _FrozenElementList<T extends Element> extends ListBase<T>
@DocsEditable()
ElementStream<Event> get onDoubleClick => Element.doubleClickEvent._forElementList(this);
- /// Stream of `drag` events handled by this [Element].
+ /**
+ * A stream of `drag` events fired when this element currently being dragged.
+ *
+ * A `drag` event is added to this stream as soon as the drag begins.
+ * A `drag` event is also added to this stream at intervals while the drag
+ * operation is still ongoing.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondrag')
@DocsEditable()
ElementStream<MouseEvent> get onDrag => Element.dragEvent._forElementList(this);
- /// Stream of `dragend` events handled by this [Element].
+ /**
+ * A stream of `dragend` events fired when this element completes a drag
+ * operation.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondragend')
@DocsEditable()
ElementStream<MouseEvent> get onDragEnd => Element.dragEndEvent._forElementList(this);
- /// Stream of `dragenter` events handled by this [Element].
+ /**
+ * A stream of `dragenter` events fired when a dragged object is first dragged
+ * over this element.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondragenter')
@DocsEditable()
ElementStream<MouseEvent> get onDragEnter => Element.dragEnterEvent._forElementList(this);
- /// Stream of `dragleave` events handled by this [Element].
+ /**
+ * A stream of `dragleave` events fired when an object being dragged over this
+ * element leaves this element's target area.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondragleave')
@DocsEditable()
ElementStream<MouseEvent> get onDragLeave => Element.dragLeaveEvent._forElementList(this);
- /// Stream of `dragover` events handled by this [Element].
+ /**
+ * A stream of `dragover` events fired when a dragged object is currently
+ * being dragged over this element.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondragover')
@DocsEditable()
ElementStream<MouseEvent> get onDragOver => Element.dragOverEvent._forElementList(this);
- /// Stream of `dragstart` events handled by this [Element].
+ /**
+ * A stream of `dragstart` events fired when this element starts being
+ * dragged.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondragstart')
@DocsEditable()
ElementStream<MouseEvent> get onDragStart => Element.dragStartEvent._forElementList(this);
- /// Stream of `drop` events handled by this [Element].
+ /**
+ * A stream of `drop` events fired when a dragged object is dropped on this
+ * element.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondrop')
@DocsEditable()
ElementStream<MouseEvent> get onDrop => Element.dropEvent._forElementList(this);
@@ -10062,70 +10250,128 @@ abstract class Element extends Node implements ParentNode, ChildNode native "Ele
static const EventStreamProvider<Event> doubleClickEvent = const EventStreamProvider<Event>('dblclick');
/**
- * Static factory designed to expose `drag` events to event
- * handlers that are not necessarily instances of [Element].
+ * A stream of `drag` events fired when an element is currently being dragged.
*
- * See [EventStreamProvider] for usage information.
+ * A `drag` event is added to this stream as soon as the drag begins.
+ * A `drag` event is also added to this stream at intervals while the drag
+ * operation is still ongoing.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
*/
@DomName('Element.dragEvent')
@DocsEditable()
static const EventStreamProvider<MouseEvent> dragEvent = const EventStreamProvider<MouseEvent>('drag');
/**
- * Static factory designed to expose `dragend` events to event
- * handlers that are not necessarily instances of [Element].
+ * A stream of `dragend` events fired when an element completes a drag
+ * operation.
*
- * See [EventStreamProvider] for usage information.
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
*/
@DomName('Element.dragendEvent')
@DocsEditable()
static const EventStreamProvider<MouseEvent> dragEndEvent = const EventStreamProvider<MouseEvent>('dragend');
/**
- * Static factory designed to expose `dragenter` events to event
- * handlers that are not necessarily instances of [Element].
+ * A stream of `dragenter` events fired when a dragged object is first dragged
+ * over an element.
*
- * See [EventStreamProvider] for usage information.
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
*/
@DomName('Element.dragenterEvent')
@DocsEditable()
static const EventStreamProvider<MouseEvent> dragEnterEvent = const EventStreamProvider<MouseEvent>('dragenter');
/**
- * Static factory designed to expose `dragleave` events to event
- * handlers that are not necessarily instances of [Element].
+ * A stream of `dragleave` events fired when an object being dragged over an
+ * element leaves the element's target area.
*
- * See [EventStreamProvider] for usage information.
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
*/
@DomName('Element.dragleaveEvent')
@DocsEditable()
static const EventStreamProvider<MouseEvent> dragLeaveEvent = const EventStreamProvider<MouseEvent>('dragleave');
/**
- * Static factory designed to expose `dragover` events to event
- * handlers that are not necessarily instances of [Element].
+ * A stream of `dragover` events fired when a dragged object is currently
+ * being dragged over an element.
*
- * See [EventStreamProvider] for usage information.
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
*/
@DomName('Element.dragoverEvent')
@DocsEditable()
static const EventStreamProvider<MouseEvent> dragOverEvent = const EventStreamProvider<MouseEvent>('dragover');
/**
- * Static factory designed to expose `dragstart` events to event
- * handlers that are not necessarily instances of [Element].
+ * A stream of `dragstart` events for a dragged element whose drag has begun.
*
- * See [EventStreamProvider] for usage information.
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
*/
@DomName('Element.dragstartEvent')
@DocsEditable()
static const EventStreamProvider<MouseEvent> dragStartEvent = const EventStreamProvider<MouseEvent>('dragstart');
/**
- * Static factory designed to expose `drop` events to event
- * handlers that are not necessarily instances of [Element].
+ * A stream of `drop` events fired when a dragged object is dropped on an
+ * element.
*
- * See [EventStreamProvider] for usage information.
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
*/
@DomName('Element.dropEvent')
@DocsEditable()
@@ -10464,6 +10710,19 @@ abstract class Element extends Node implements ParentNode, ChildNode native "Ele
@DocsEditable()
String dir;
+ /**
+ * Indicates whether the element can be dragged and dropped.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.draggable')
@DocsEditable()
bool draggable;
@@ -10861,37 +11120,131 @@ abstract class Element extends Node implements ParentNode, ChildNode native "Ele
@DocsEditable()
ElementStream<Event> get onDoubleClick => doubleClickEvent.forElement(this);
- /// Stream of `drag` events handled by this [Element].
+ /**
+ * A stream of `drag` events fired when this element currently being dragged.
+ *
+ * A `drag` event is added to this stream as soon as the drag begins.
+ * A `drag` event is also added to this stream at intervals while the drag
+ * operation is still ongoing.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondrag')
@DocsEditable()
ElementStream<MouseEvent> get onDrag => dragEvent.forElement(this);
- /// Stream of `dragend` events handled by this [Element].
+ /**
+ * A stream of `dragend` events fired when this element completes a drag
+ * operation.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondragend')
@DocsEditable()
ElementStream<MouseEvent> get onDragEnd => dragEndEvent.forElement(this);
- /// Stream of `dragenter` events handled by this [Element].
+ /**
+ * A stream of `dragenter` events fired when a dragged object is first dragged
+ * over this element.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondragenter')
@DocsEditable()
ElementStream<MouseEvent> get onDragEnter => dragEnterEvent.forElement(this);
- /// Stream of `dragleave` events handled by this [Element].
+ /**
+ * A stream of `dragleave` events fired when an object being dragged over this
+ * element leaves this element's target area.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondragleave')
@DocsEditable()
ElementStream<MouseEvent> get onDragLeave => dragLeaveEvent.forElement(this);
- /// Stream of `dragover` events handled by this [Element].
+ /**
+ * A stream of `dragover` events fired when a dragged object is currently
+ * being dragged over this element.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondragover')
@DocsEditable()
ElementStream<MouseEvent> get onDragOver => dragOverEvent.forElement(this);
- /// Stream of `dragstart` events handled by this [Element].
+ /**
+ * A stream of `dragstart` events fired when this element starts being
+ * dragged.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondragstart')
@DocsEditable()
ElementStream<MouseEvent> get onDragStart => dragStartEvent.forElement(this);
- /// Stream of `drop` events handled by this [Element].
+ /**
+ * A stream of `drop` events fired when a dragged object is dropped on this
+ * element.
+ *
+ * ## Other resources
+ *
+ * * [Drag and drop sample]
+ * (https://github.com/dart-lang/dart-samples/tree/master/web/html5/dnd/basics)
+ * based on [the tutorial](http://www.html5rocks.com/en/tutorials/dnd/basics/)
+ * from HTML5Rocks.
+ * * [Drag and drop specification]
+ * (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd)
+ * from WHATWG.
+ */
@DomName('Element.ondrop')
@DocsEditable()
ElementStream<MouseEvent> get onDrop => dropEvent.forElement(this);
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698