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

Side by Side Diff: client/dom/generated/src/frog/Event.dart

Issue 9312003: Use fields in hidden native DOM classes instead of getters/setters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also fix native Created 8 years, 10 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
OLDNEW
1 1
2 class _EventJs extends _DOMTypeJs implements Event native "*Event" { 2 class _EventJs extends _DOMTypeJs implements Event native "*Event" {
3 3
4 static final int AT_TARGET = 2; 4 static final int AT_TARGET = 2;
5 5
6 static final int BLUR = 8192; 6 static final int BLUR = 8192;
7 7
8 static final int BUBBLING_PHASE = 3; 8 static final int BUBBLING_PHASE = 3;
9 9
10 static final int CAPTURING_PHASE = 1; 10 static final int CAPTURING_PHASE = 1;
(...skipping 21 matching lines...) Expand all
32 static final int MOUSEMOVE = 16; 32 static final int MOUSEMOVE = 16;
33 33
34 static final int MOUSEOUT = 8; 34 static final int MOUSEOUT = 8;
35 35
36 static final int MOUSEOVER = 4; 36 static final int MOUSEOVER = 4;
37 37
38 static final int MOUSEUP = 2; 38 static final int MOUSEUP = 2;
39 39
40 static final int SELECT = 16384; 40 static final int SELECT = 16384;
41 41
42 bool get bubbles() native "return this.bubbles;"; 42 final bool bubbles;
43 43
44 bool get cancelBubble() native "return this.cancelBubble;"; 44 bool cancelBubble;
45 45
46 void set cancelBubble(bool value) native "this.cancelBubble = value;"; 46 final bool cancelable;
47 47
48 bool get cancelable() native "return this.cancelable;"; 48 final _ClipboardJs clipboardData;
49 49
50 _ClipboardJs get clipboardData() native "return this.clipboardData;"; 50 final _EventTargetJs currentTarget;
51 51
52 _EventTargetJs get currentTarget() native "return this.currentTarget;"; 52 final bool defaultPrevented;
53 53
54 bool get defaultPrevented() native "return this.defaultPrevented;"; 54 final int eventPhase;
55 55
56 int get eventPhase() native "return this.eventPhase;"; 56 bool returnValue;
57 57
58 bool get returnValue() native "return this.returnValue;"; 58 final _EventTargetJs srcElement;
59 59
60 void set returnValue(bool value) native "this.returnValue = value;"; 60 final _EventTargetJs target;
61 61
62 _EventTargetJs get srcElement() native "return this.srcElement;"; 62 final int timeStamp;
63 63
64 _EventTargetJs get target() native "return this.target;"; 64 final String type;
65
66 int get timeStamp() native "return this.timeStamp;";
67
68 String get type() native "return this.type;";
69 65
70 void initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) nat ive; 66 void initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) nat ive;
71 67
72 void preventDefault() native; 68 void preventDefault() native;
73 69
74 void stopImmediatePropagation() native; 70 void stopImmediatePropagation() native;
75 71
76 void stopPropagation() native; 72 void stopPropagation() native;
77 } 73 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698