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

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

Issue 8404013: Add constructors to all the event classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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.
6
7 class EventWrappingImplementation extends DOMWrapperBase implements Event { 5 class EventWrappingImplementation extends DOMWrapperBase implements Event {
8 EventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} 6 EventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
9 7
8 factory EventWrappingImplementation(String type, [bool canBubble = false,
9 bool cancelable = false]) {
10 var e = dom.document.createEvent("Event");
11 e.initEvent(type, canBubble, cancelable);
12 return LevelDom.wrapEvent(e);
13 }
14
10 bool get bubbles() { return _ptr.bubbles; } 15 bool get bubbles() { return _ptr.bubbles; }
11 16
12 bool get cancelBubble() { return _ptr.cancelBubble; } 17 bool get cancelBubble() { return _ptr.cancelBubble; }
13 18
14 void set cancelBubble(bool value) { _ptr.cancelBubble = value; } 19 void set cancelBubble(bool value) { _ptr.cancelBubble = value; }
15 20
16 bool get cancelable() { return _ptr.cancelable; } 21 bool get cancelable() { return _ptr.cancelable; }
17 22
18 EventTarget get currentTarget() { return LevelDom.wrapEventTarget(_ptr.current Target); } 23 EventTarget get currentTarget() { return LevelDom.wrapEventTarget(_ptr.current Target); }
19 24
20 bool get defaultPrevented() { return _ptr.defaultPrevented; } 25 bool get defaultPrevented() { return _ptr.defaultPrevented; }
21 26
22 int get eventPhase() { return _ptr.eventPhase; } 27 int get eventPhase() { return _ptr.eventPhase; }
23 28
24 bool get returnValue() { return _ptr.returnValue; } 29 bool get returnValue() { return _ptr.returnValue; }
25 30
26 void set returnValue(bool value) { _ptr.returnValue = value; } 31 void set returnValue(bool value) { _ptr.returnValue = value; }
27 32
28 EventTarget get srcElement() { return LevelDom.wrapEventTarget(_ptr.srcElement ); } 33 EventTarget get srcElement() { return LevelDom.wrapEventTarget(_ptr.srcElement ); }
29 34
30 EventTarget get target() { return LevelDom.wrapEventTarget(_ptr.target); } 35 EventTarget get target() { return LevelDom.wrapEventTarget(_ptr.target); }
31 36
32 int get timeStamp() { return _ptr.timeStamp; } 37 int get timeStamp() { return _ptr.timeStamp; }
33 38
34 String get type() { return _ptr.type; } 39 String get type() { return _ptr.type; }
35 40
36 void initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) {
37 _ptr.initEvent(eventTypeArg, canBubbleArg, cancelableArg);
38 return;
39 }
40
41 void preventDefault() { 41 void preventDefault() {
42 _ptr.preventDefault(); 42 _ptr.preventDefault();
43 return; 43 return;
44 } 44 }
45 45
46 void stopImmediatePropagation() { 46 void stopImmediatePropagation() {
47 _ptr.stopImmediatePropagation(); 47 _ptr.stopImmediatePropagation();
48 return; 48 return;
49 } 49 }
50 50
51 void stopPropagation() { 51 void stopPropagation() {
52 _ptr.stopPropagation(); 52 _ptr.stopPropagation();
53 return; 53 return;
54 } 54 }
55 } 55 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698