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

Side by Side Diff: lib/html/doc/interface/Event.dartdoc

Issue 11090010: Remove explicit interface versions of dartdoc files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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: 5 // WARNING: Do not edit - generated code.
6 // This file contains documentation that is merged into the real source.
7 // Do not make code changes here.
8 6
9 /// @domName Event 7 /// @domName Event
10 interface Event default _EventFactoryProvider { 8 abstract class Event {
11 9
12 // In JS, canBubble and cancelable are technically required parameters to 10 // In JS, canBubble and cancelable are technically required parameters to
13 // init*Event. In practice, though, if they aren't provided they simply 11 // init*Event. In practice, though, if they aren't provided they simply
14 // default to false (since that's Boolean(undefined)). 12 // default to false (since that's Boolean(undefined)).
15 // 13 //
16 // Contrary to JS, we default canBubble and cancelable to true, since that's 14 // Contrary to JS, we default canBubble and cancelable to true, since that's
17 // what people want most of the time anyway. 15 // what people want most of the time anyway.
18 Event(String type, [bool canBubble, bool cancelable]); 16 factory Event(String type, [bool canBubble = true, bool cancelable = true]) =>
17 _EventFactoryProvider.createEvent(type, canBubble, cancelable);
19 18
20 static final int AT_TARGET = 2; 19 static const int AT_TARGET = 2;
21 20
22 static final int BLUR = 8192; 21 static const int BLUR = 8192;
23 22
24 static final int BUBBLING_PHASE = 3; 23 static const int BUBBLING_PHASE = 3;
25 24
26 static final int CAPTURING_PHASE = 1; 25 static const int CAPTURING_PHASE = 1;
27 26
28 static final int CHANGE = 32768; 27 static const int CHANGE = 32768;
29 28
30 static final int CLICK = 64; 29 static const int CLICK = 64;
31 30
32 static final int DBLCLICK = 128; 31 static const int DBLCLICK = 128;
33 32
34 static final int DRAGDROP = 2048; 33 static const int DRAGDROP = 2048;
35 34
36 static final int FOCUS = 4096; 35 static const int FOCUS = 4096;
37 36
38 static final int KEYDOWN = 256; 37 static const int KEYDOWN = 256;
39 38
40 static final int KEYPRESS = 1024; 39 static const int KEYPRESS = 1024;
41 40
42 static final int KEYUP = 512; 41 static const int KEYUP = 512;
43 42
44 static final int MOUSEDOWN = 1; 43 static const int MOUSEDOWN = 1;
45 44
46 static final int MOUSEDRAG = 32; 45 static const int MOUSEDRAG = 32;
47 46
48 static final int MOUSEMOVE = 16; 47 static const int MOUSEMOVE = 16;
49 48
50 static final int MOUSEOUT = 8; 49 static const int MOUSEOUT = 8;
51 50
52 static final int MOUSEOVER = 4; 51 static const int MOUSEOVER = 4;
53 52
54 static final int MOUSEUP = 2; 53 static const int MOUSEUP = 2;
55 54
56 static final int NONE = 0; 55 static const int NONE = 0;
57 56
58 static final int SELECT = 16384; 57 static const int SELECT = 16384;
59 58
60 /** @domName Event.bubbles */ 59 /** @domName Event.bubbles */
61 final bool bubbles; 60 abstract bool get bubbles;
62 61
63 /** @domName Event.cancelBubble */ 62 /** @domName Event.cancelBubble */
64 bool cancelBubble; 63 bool cancelBubble;
65 64
66 /** @domName Event.cancelable */ 65 /** @domName Event.cancelable */
67 final bool cancelable; 66 abstract bool get cancelable;
68 67
69 /** @domName Event.clipboardData */ 68 /** @domName Event.clipboardData */
70 final Clipboard clipboardData; 69 abstract Clipboard get clipboardData;
71 70
72 /** @domName Event.currentTarget */ 71 /** @domName Event.currentTarget */
73 final EventTarget currentTarget; 72 abstract EventTarget get currentTarget;
74 73
75 /** @domName Event.defaultPrevented */ 74 /** @domName Event.defaultPrevented */
76 final bool defaultPrevented; 75 abstract bool get defaultPrevented;
77 76
78 /** @domName Event.eventPhase */ 77 /** @domName Event.eventPhase */
79 final int eventPhase; 78 abstract int get eventPhase;
80 79
81 /** @domName Event.returnValue */ 80 /** @domName Event.returnValue */
82 bool returnValue; 81 bool returnValue;
83 82
84 /** @domName Event.srcElement */ 83 /** @domName Event.srcElement */
85 final EventTarget srcElement; 84 abstract EventTarget get srcElement;
86 85
87 /** @domName Event.target */ 86 /** @domName Event.target */
88 final EventTarget target; 87 abstract EventTarget get target;
89 88
90 /** @domName Event.timeStamp */ 89 /** @domName Event.timeStamp */
91 final int timeStamp; 90 abstract int get timeStamp;
92 91
93 /** @domName Event.type */ 92 /** @domName Event.type */
94 final String type; 93 abstract String get type;
95 94
96 /** @domName Event.initEvent */ 95 /** @domName Event.initEvent */
97 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg ); 96 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg );
98 97
99 /** @domName Event.preventDefault */ 98 /** @domName Event.preventDefault */
100 void preventDefault(); 99 void preventDefault();
101 100
102 /** @domName Event.stopImmediatePropagation */ 101 /** @domName Event.stopImmediatePropagation */
103 void stopImmediatePropagation(); 102 void stopImmediatePropagation();
104 103
105 /** @domName Event.stopPropagation */ 104 /** @domName Event.stopPropagation */
106 void stopPropagation(); 105 void stopPropagation();
107 } 106 }
OLDNEW
« no previous file with comments | « lib/html/doc/interface/ErrorEvent.dartdoc ('k') | lib/html/doc/interface/EventException.dartdoc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698