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

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

Issue 23055008: Making almost all dom_ methods private. Exceptions will be addressed in a later CL. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « tools/dom/src/AttributeMap.dart ('k') | tools/dom/src/dart2js_KeyEvent.dart » ('j') | 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 {
(...skipping 16 matching lines...) Expand all
27 bool get defaultPrevented => wrapped.defaultPrevented; 27 bool get defaultPrevented => wrapped.defaultPrevented;
28 28
29 int get eventPhase => wrapped.eventPhase; 29 int get eventPhase => wrapped.eventPhase;
30 30
31 EventTarget get target => wrapped.target; 31 EventTarget get target => wrapped.target;
32 32
33 int get timeStamp => wrapped.timeStamp; 33 int get timeStamp => wrapped.timeStamp;
34 34
35 String get type => wrapped.type; 35 String get type => wrapped.type;
36 36
37 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, 37 void _initEvent(String eventTypeArg, bool canBubbleArg,
38 bool cancelableArg) { 38 bool cancelableArg) {
39 throw new UnsupportedError( 39 throw new UnsupportedError(
40 'Cannot initialize this Event.'); 40 'Cannot initialize this Event.');
41 } 41 }
42 42
43 void preventDefault() { 43 void preventDefault() {
44 wrapped.preventDefault(); 44 wrapped.preventDefault();
45 } 45 }
46 46
47 void stopImmediatePropagation() { 47 void stopImmediatePropagation() {
48 wrapped.stopImmediatePropagation(); 48 wrapped.stopImmediatePropagation();
49 } 49 }
50 50
51 void stopPropagation() { 51 void stopPropagation() {
52 wrapped.stopPropagation(); 52 wrapped.stopPropagation();
53 } 53 }
54 } 54 }
OLDNEW
« no previous file with comments | « tools/dom/src/AttributeMap.dart ('k') | tools/dom/src/dart2js_KeyEvent.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698