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

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

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