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

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

Issue 2827793002: Format all files under tools and utils directory. (Closed)
Patch Set: Format all files under tools and utils directory. Created 3 years, 8 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
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 {
(...skipping 13 matching lines...) Expand all
24 bool get defaultPrevented => wrapped.defaultPrevented; 24 bool get defaultPrevented => wrapped.defaultPrevented;
25 25
26 int get eventPhase => wrapped.eventPhase; 26 int get eventPhase => wrapped.eventPhase;
27 27
28 EventTarget get target => wrapped.target; 28 EventTarget get target => wrapped.target;
29 29
30 int get timeStamp => wrapped.timeStamp; 30 int get timeStamp => wrapped.timeStamp;
31 31
32 String get type => wrapped.type; 32 String get type => wrapped.type;
33 33
34 void _initEvent(String eventTypeArg, bool canBubbleArg, 34 void _initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) {
35 bool cancelableArg) { 35 throw new UnsupportedError('Cannot initialize this Event.');
36 throw new UnsupportedError(
37 'Cannot initialize this Event.');
38 } 36 }
39 37
40 void preventDefault() { 38 void preventDefault() {
41 wrapped.preventDefault(); 39 wrapped.preventDefault();
42 } 40 }
43 41
44 void stopImmediatePropagation() { 42 void stopImmediatePropagation() {
45 wrapped.stopImmediatePropagation(); 43 wrapped.stopImmediatePropagation();
46 } 44 }
47 45
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 * from W3C. 77 * from W3C.
80 */ 78 */
81 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#ex tensions-to-event 79 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#ex tensions-to-event
82 @Experimental() 80 @Experimental()
83 List<Node> get path => wrapped.path; 81 List<Node> get path => wrapped.path;
84 82
85 dynamic get _get_currentTarget => wrapped._get_currentTarget; 83 dynamic get _get_currentTarget => wrapped._get_currentTarget;
86 84
87 dynamic get _get_target => wrapped._get_target; 85 dynamic get _get_target => wrapped._get_target;
88 } 86 }
OLDNEW
« no previous file with comments | « tools/dom/src/dart2js_TypedArrayFactoryProvider.dart ('k') | tools/dom/src/dartium_CssClassSet.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698