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

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

Issue 8404013: Add constructors to all the event classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regenerate release/html. 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 interface Event factory EventWrappingImplementation {
6
7 interface Event {
8 6
9 static final int AT_TARGET = 2; 7 static final int AT_TARGET = 2;
10 8
11 static final int BLUR = 8192; 9 static final int BLUR = 8192;
12 10
13 static final int BUBBLING_PHASE = 3; 11 static final int BUBBLING_PHASE = 3;
14 12
15 static final int CAPTURING_PHASE = 1; 13 static final int CAPTURING_PHASE = 1;
16 14
17 static final int CHANGE = 32768; 15 static final int CHANGE = 32768;
(...skipping 19 matching lines...) Expand all
37 static final int MOUSEMOVE = 16; 35 static final int MOUSEMOVE = 16;
38 36
39 static final int MOUSEOUT = 8; 37 static final int MOUSEOUT = 8;
40 38
41 static final int MOUSEOVER = 4; 39 static final int MOUSEOVER = 4;
42 40
43 static final int MOUSEUP = 2; 41 static final int MOUSEUP = 2;
44 42
45 static final int SELECT = 16384; 43 static final int SELECT = 16384;
46 44
45 // In JS, canBubble and cancelable are technically required parameters to
46 // init*Event. In practice, though, if they aren't provided they simply
47 // default to false (since that's Boolean(undefined)).
48 //
49 // Contrary to JS, we default canBubble and cancelable to true, since that's
50 // what people want most of the time anyway.
51 Event(String type, [bool canBubble, bool cancelable]);
52
47 bool get bubbles(); 53 bool get bubbles();
48 54
49 bool get cancelBubble(); 55 bool get cancelBubble();
50 56
51 void set cancelBubble(bool value); 57 void set cancelBubble(bool value);
52 58
53 bool get cancelable(); 59 bool get cancelable();
54 60
55 EventTarget get currentTarget(); 61 EventTarget get currentTarget();
56 62
57 bool get defaultPrevented(); 63 bool get defaultPrevented();
58 64
59 int get eventPhase(); 65 int get eventPhase();
60 66
61 bool get returnValue(); 67 bool get returnValue();
62 68
63 void set returnValue(bool value); 69 void set returnValue(bool value);
64 70
65 EventTarget get srcElement(); 71 EventTarget get srcElement();
66 72
67 EventTarget get target(); 73 EventTarget get target();
68 74
69 int get timeStamp(); 75 int get timeStamp();
70 76
71 String get type(); 77 String get type();
72 78
73 void initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg);
74
75 void preventDefault(); 79 void preventDefault();
76 80
77 void stopImmediatePropagation(); 81 void stopImmediatePropagation();
78 82
79 void stopPropagation(); 83 void stopPropagation();
80 } 84 }
OLDNEW
« no previous file with comments | « client/html/src/ErrorEventWrappingImplementation.dart ('k') | client/html/src/EventWrappingImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698