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

Unified Diff: sdk/lib/svg/dart2js/svg_dart2js.dart

Issue 2898673003: Split DragEvent back out from MouseEvent (Closed)
Patch Set: Created 3 years, 7 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/svg/dart2js/svg_dart2js.dart
diff --git a/sdk/lib/svg/dart2js/svg_dart2js.dart b/sdk/lib/svg/dart2js/svg_dart2js.dart
index 0022b46a6e2964d8676c9e06d09f3126469e687f..5ede4b13452171043cc5f618001da9726d74cdd0 100644
--- a/sdk/lib/svg/dart2js/svg_dart2js.dart
+++ b/sdk/lib/svg/dart2js/svg_dart2js.dart
@@ -4244,44 +4244,44 @@ class SvgElement extends Element implements GlobalEventHandlers {
@DomName('SVGElement.dragEvent')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<MouseEvent> dragEvent =
- const EventStreamProvider<MouseEvent>('drag');
+ static const EventStreamProvider<DragEvent> dragEvent =
+ const EventStreamProvider<DragEvent>('drag');
@DomName('SVGElement.dragendEvent')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<MouseEvent> dragEndEvent =
- const EventStreamProvider<MouseEvent>('dragend');
+ static const EventStreamProvider<DragEvent> dragEndEvent =
+ const EventStreamProvider<DragEvent>('dragend');
@DomName('SVGElement.dragenterEvent')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<MouseEvent> dragEnterEvent =
- const EventStreamProvider<MouseEvent>('dragenter');
+ static const EventStreamProvider<DragEvent> dragEnterEvent =
+ const EventStreamProvider<DragEvent>('dragenter');
@DomName('SVGElement.dragleaveEvent')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<MouseEvent> dragLeaveEvent =
- const EventStreamProvider<MouseEvent>('dragleave');
+ static const EventStreamProvider<DragEvent> dragLeaveEvent =
+ const EventStreamProvider<DragEvent>('dragleave');
@DomName('SVGElement.dragoverEvent')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<MouseEvent> dragOverEvent =
- const EventStreamProvider<MouseEvent>('dragover');
+ static const EventStreamProvider<DragEvent> dragOverEvent =
+ const EventStreamProvider<DragEvent>('dragover');
@DomName('SVGElement.dragstartEvent')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<MouseEvent> dragStartEvent =
- const EventStreamProvider<MouseEvent>('dragstart');
+ static const EventStreamProvider<DragEvent> dragStartEvent =
+ const EventStreamProvider<DragEvent>('dragstart');
@DomName('SVGElement.dropEvent')
@DocsEditable()
@Experimental() // untriaged
- static const EventStreamProvider<MouseEvent> dropEvent =
- const EventStreamProvider<MouseEvent>('drop');
+ static const EventStreamProvider<DragEvent> dropEvent =
+ const EventStreamProvider<DragEvent>('drop');
@DomName('SVGElement.durationchangeEvent')
@DocsEditable()
@@ -4608,37 +4608,37 @@ class SvgElement extends Element implements GlobalEventHandlers {
@DomName('SVGElement.ondrag')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<MouseEvent> get onDrag => dragEvent.forElement(this);
+ ElementStream<DragEvent> get onDrag => dragEvent.forElement(this);
@DomName('SVGElement.ondragend')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<MouseEvent> get onDragEnd => dragEndEvent.forElement(this);
+ ElementStream<DragEvent> get onDragEnd => dragEndEvent.forElement(this);
@DomName('SVGElement.ondragenter')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<MouseEvent> get onDragEnter => dragEnterEvent.forElement(this);
+ ElementStream<DragEvent> get onDragEnter => dragEnterEvent.forElement(this);
@DomName('SVGElement.ondragleave')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<MouseEvent> get onDragLeave => dragLeaveEvent.forElement(this);
+ ElementStream<DragEvent> get onDragLeave => dragLeaveEvent.forElement(this);
@DomName('SVGElement.ondragover')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<MouseEvent> get onDragOver => dragOverEvent.forElement(this);
+ ElementStream<DragEvent> get onDragOver => dragOverEvent.forElement(this);
@DomName('SVGElement.ondragstart')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<MouseEvent> get onDragStart => dragStartEvent.forElement(this);
+ ElementStream<DragEvent> get onDragStart => dragStartEvent.forElement(this);
@DomName('SVGElement.ondrop')
@DocsEditable()
@Experimental() // untriaged
- ElementStream<MouseEvent> get onDrop => dropEvent.forElement(this);
+ ElementStream<DragEvent> get onDrop => dropEvent.forElement(this);
@DomName('SVGElement.ondurationchange')
@DocsEditable()
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698