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

Side by Side Diff: tools/dom/src/dartium_WrappedEvent.dart

Issue 1775923002: Chrome moved clipboardData from Event to ClipboardEvent for security clipboard can only be accessed… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « tools/dom/src/dartium_KeyEvent.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.html; 5 part of dart.html;
6 6
7 /** 7 /**
8 * Helper class to implement custom events which wrap DOM events. 8 * Helper class to implement custom events which wrap DOM events.
9 */ 9 */
10 class _WrappedEvent implements Event { 10 class _WrappedEvent implements Event {
11 /** Needed because KeyboardEvent is implements. 11 /** Needed because KeyboardEvent is implements.
12 * TODO(terry): Consider making blink_jsObject private (add underscore) for 12 * TODO(terry): Consider making blink_jsObject private (add underscore) for
13 * all blink_jsObject. Then needed private wrap/unwrap_jso 13 * all blink_jsObject. Then needed private wrap/unwrap_jso
14 * functions that delegate to a public wrap/unwrap_jso. 14 * functions that delegate to a public wrap/unwrap_jso.
15 */ 15 */
16 js.JsObject blink_jsObject; 16 js.JsObject blink_jsObject;
17 17
18 final Event wrapped; 18 final Event wrapped;
19 19
20 /** The CSS selector involved with event delegation. */ 20 /** The CSS selector involved with event delegation. */
21 String _selector; 21 String _selector;
22 22
23 _WrappedEvent(this.wrapped); 23 _WrappedEvent(this.wrapped);
24 24
25 bool get bubbles => wrapped.bubbles; 25 bool get bubbles => wrapped.bubbles;
26 26
27 bool get cancelable => wrapped.cancelable; 27 bool get cancelable => wrapped.cancelable;
28 28
29 DataTransfer get clipboardData => wrapped.clipboardData;
30
31 EventTarget get currentTarget => wrapped.currentTarget; 29 EventTarget get currentTarget => wrapped.currentTarget;
32 30
33 bool get defaultPrevented => wrapped.defaultPrevented; 31 bool get defaultPrevented => wrapped.defaultPrevented;
34 32
35 int get eventPhase => wrapped.eventPhase; 33 int get eventPhase => wrapped.eventPhase;
36 34
37 EventTarget get target => wrapped.target; 35 EventTarget get target => wrapped.target;
38 36
39 int get timeStamp => wrapped.timeStamp; 37 int get timeStamp => wrapped.timeStamp;
40 38
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 * ## Other resources 82 * ## Other resources
85 * 83 *
86 * * [Shadow DOM extensions to 84 * * [Shadow DOM extensions to
87 * Event](http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-even t) 85 * Event](http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-even t)
88 * from W3C. 86 * from W3C.
89 */ 87 */
90 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#ex tensions-to-event 88 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#ex tensions-to-event
91 @Experimental() 89 @Experimental()
92 List<Node> get path => wrapped.path; 90 List<Node> get path => wrapped.path;
93 } 91 }
OLDNEW
« no previous file with comments | « tools/dom/src/dartium_KeyEvent.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698