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

Side by Side Diff: client/html/src/EventWrappingImplementation.dart

Issue 8363040: Implement measurement using futures (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: take2 Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 6
7 class EventWrappingImplementation extends DOMWrapperBase implements Event { 7 class EventWrappingImplementation extends DOMWrapperBase implements Event {
8
9 bool _stoppedPropagation = false;
arv (Not doing code reviews) 2011/10/27 03:16:13 What is this for?
Jacob 2011/10/27 20:59:25 Good catch. This is obsolete. I was trying to manu
10
8 EventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} 11 EventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
9 12
10 bool get bubbles() { return _ptr.bubbles; } 13 bool get bubbles() { return _ptr.bubbles; }
11 14
12 bool get cancelBubble() { return _ptr.cancelBubble; } 15 bool get cancelBubble() { return _ptr.cancelBubble; }
13 16
14 void set cancelBubble(bool value) { _ptr.cancelBubble = value; } 17 void set cancelBubble(bool value) { _ptr.cancelBubble = value; }
15 18
16 bool get cancelable() { return _ptr.cancelable; } 19 bool get cancelable() { return _ptr.cancelable; }
17 20
(...skipping 10 matching lines...) Expand all
28 EventTarget get srcElement() { return LevelDom.wrapEventTarget(_ptr.srcElement ); } 31 EventTarget get srcElement() { return LevelDom.wrapEventTarget(_ptr.srcElement ); }
29 32
30 EventTarget get target() { return LevelDom.wrapEventTarget(_ptr.target); } 33 EventTarget get target() { return LevelDom.wrapEventTarget(_ptr.target); }
31 34
32 int get timeStamp() { return _ptr.timeStamp; } 35 int get timeStamp() { return _ptr.timeStamp; }
33 36
34 String get type() { return _ptr.type; } 37 String get type() { return _ptr.type; }
35 38
36 void initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) { 39 void initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) {
37 _ptr.initEvent(eventTypeArg, canBubbleArg, cancelableArg); 40 _ptr.initEvent(eventTypeArg, canBubbleArg, cancelableArg);
38 return;
39 } 41 }
40 42
41 void preventDefault() { 43 void preventDefault() {
44 _stoppedPropagation = true;
42 _ptr.preventDefault(); 45 _ptr.preventDefault();
43 return;
44 } 46 }
45 47
46 void stopImmediatePropagation() { 48 void stopImmediatePropagation() {
49 _stoppedPropagation = true;
47 _ptr.stopImmediatePropagation(); 50 _ptr.stopImmediatePropagation();
48 return;
49 } 51 }
50 52
51 void stopPropagation() { 53 void stopPropagation() {
54 _stoppedPropagation = true;
52 _ptr.stopPropagation(); 55 _ptr.stopPropagation();
53 return;
54 } 56 }
55 } 57 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698