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 44f655d6ad3417659968ef359f9e9a5c6f552456..77cd7cf12abe991562429e294f9cc7196f4d1e6c 100644 |
--- a/sdk/lib/html/dart2js/html_dart2js.dart |
+++ b/sdk/lib/html/dart2js/html_dart2js.dart |
@@ -10254,12 +10254,12 @@ class Document extends Node |
/// Stream of `copy` events handled by this [Document]. |
@DomName('Document.oncopy') |
@DocsEditable() |
- Stream<Event> get onCopy => Element.copyEvent.forTarget(this); |
+ Stream<ClipboardEvent> get onCopy => Element.copyEvent.forTarget(this); |
/// Stream of `cut` events handled by this [Document]. |
@DomName('Document.oncut') |
@DocsEditable() |
- Stream<Event> get onCut => Element.cutEvent.forTarget(this); |
+ Stream<ClipboardEvent> get onCut => Element.cutEvent.forTarget(this); |
/// Stream of `doubleclick` events handled by this [Document]. |
@DomName('Document.ondblclick') |
@@ -10411,7 +10411,7 @@ class Document extends Node |
/// Stream of `paste` events handled by this [Document]. |
@DomName('Document.onpaste') |
@DocsEditable() |
- Stream<Event> get onPaste => Element.pasteEvent.forTarget(this); |
+ Stream<ClipboardEvent> get onPaste => Element.pasteEvent.forTarget(this); |
@DomName('Document.onpause') |
@DocsEditable() |
@@ -12095,12 +12095,12 @@ abstract class ElementList<T extends Element> extends ListBase<T> { |
/// Stream of `copy` events handled by this [Element]. |
@DomName('Element.oncopy') |
@DocsEditable() |
- ElementStream<Event> get onCopy; |
+ ElementStream<ClipboardEvent> get onCopy; |
/// Stream of `cut` events handled by this [Element]. |
@DomName('Element.oncut') |
@DocsEditable() |
- ElementStream<Event> get onCut; |
+ ElementStream<ClipboardEvent> get onCut; |
/// Stream of `doubleclick` events handled by this [Element]. |
@DomName('Element.ondblclick') |
@@ -12348,7 +12348,7 @@ abstract class ElementList<T extends Element> extends ListBase<T> { |
/// Stream of `paste` events handled by this [Element]. |
@DomName('Element.onpaste') |
@DocsEditable() |
- ElementStream<Event> get onPaste; |
+ ElementStream<ClipboardEvent> get onPaste; |
@DomName('Element.onpause') |
@DocsEditable() |
@@ -12627,12 +12627,12 @@ class _FrozenElementList extends ListBase |
/// Stream of `copy` events handled by this [Element]. |
@DomName('Element.oncopy') |
@DocsEditable() |
- ElementStream<Event> get onCopy => Element.copyEvent._forElementList(this); |
+ ElementStream<ClipboardEvent> get onCopy => Element.copyEvent._forElementList(this); |
/// Stream of `cut` events handled by this [Element]. |
@DomName('Element.oncut') |
@DocsEditable() |
- ElementStream<Event> get onCut => Element.cutEvent._forElementList(this); |
+ ElementStream<ClipboardEvent> get onCut => Element.cutEvent._forElementList(this); |
/// Stream of `doubleclick` events handled by this [Element]. |
@DomName('Element.ondblclick') |
@@ -12880,7 +12880,7 @@ class _FrozenElementList extends ListBase |
/// Stream of `paste` events handled by this [Element]. |
@DomName('Element.onpaste') |
@DocsEditable() |
- ElementStream<Event> get onPaste => Element.pasteEvent._forElementList(this); |
+ ElementStream<ClipboardEvent> get onPaste => Element.pasteEvent._forElementList(this); |
@DomName('Element.onpause') |
@DocsEditable() |
@@ -14322,7 +14322,7 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl |
*/ |
@DomName('Element.copyEvent') |
@DocsEditable() |
- static const EventStreamProvider<Event> copyEvent = const EventStreamProvider<Event>('copy'); |
+ static const EventStreamProvider<ClipboardEvent> copyEvent = const EventStreamProvider<ClipboardEvent>('copy'); |
/** |
* Static factory designed to expose `cut` events to event |
@@ -14332,7 +14332,7 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl |
*/ |
@DomName('Element.cutEvent') |
@DocsEditable() |
- static const EventStreamProvider<Event> cutEvent = const EventStreamProvider<Event>('cut'); |
+ static const EventStreamProvider<ClipboardEvent> cutEvent = const EventStreamProvider<ClipboardEvent>('cut'); |
/** |
* Static factory designed to expose `doubleclick` events to event |
@@ -14657,7 +14657,7 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl |
*/ |
@DomName('Element.pasteEvent') |
@DocsEditable() |
- static const EventStreamProvider<Event> pasteEvent = const EventStreamProvider<Event>('paste'); |
+ static const EventStreamProvider<ClipboardEvent> pasteEvent = const EventStreamProvider<ClipboardEvent>('paste'); |
@DomName('Element.pauseEvent') |
@DocsEditable() |
@@ -15455,12 +15455,12 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl |
/// Stream of `copy` events handled by this [Element]. |
@DomName('Element.oncopy') |
@DocsEditable() |
- ElementStream<Event> get onCopy => copyEvent.forElement(this); |
+ ElementStream<ClipboardEvent> get onCopy => copyEvent.forElement(this); |
/// Stream of `cut` events handled by this [Element]. |
@DomName('Element.oncut') |
@DocsEditable() |
- ElementStream<Event> get onCut => cutEvent.forElement(this); |
+ ElementStream<ClipboardEvent> get onCut => cutEvent.forElement(this); |
/// Stream of `doubleclick` events handled by this [Element]. |
@DomName('Element.ondblclick') |
@@ -15708,7 +15708,7 @@ class Element extends Node implements NonDocumentTypeChildNode, GlobalEventHandl |
/// Stream of `paste` events handled by this [Element]. |
@DomName('Element.onpaste') |
@DocsEditable() |
- ElementStream<Event> get onPaste => pasteEvent.forElement(this); |
+ ElementStream<ClipboardEvent> get onPaste => pasteEvent.forElement(this); |
@DomName('Element.onpause') |
@DocsEditable() |
@@ -43307,8 +43307,6 @@ class KeyEvent extends _WrappedEvent implements KeyboardEvent { |
static EventStreamProvider<KeyEvent> keyPressEvent = |
new _KeyboardEventHandler('keypress'); |
- /** Accessor to the clipboardData available for this event. */ |
- DataTransfer get clipboardData => _parent.clipboardData; |
String get code => _parent.code; |
/** True if the ctrl key is pressed during this event. */ |
bool get ctrlKey => _parent.ctrlKey; |
@@ -43393,8 +43391,6 @@ class _WrappedEvent implements Event { |
bool get cancelable => wrapped.cancelable; |
- DataTransfer get clipboardData => wrapped.clipboardData; |
- |
EventTarget get currentTarget => wrapped.currentTarget; |
bool get defaultPrevented => wrapped.defaultPrevented; |