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

Side by Side Diff: client/html/src/MessageEventWrappingImplementation.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 MessageEventWrappingImplementation extends EventWrappingImplementation imp lements MessageEvent { 5 class MessageEventWrappingImplementation extends EventWrappingImplementation imp lements MessageEvent {
8 MessageEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} 6 MessageEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
9 7
8 factory MessageEventWrappingImplementation(String type, String data,
9 String origin, String lastEventId, Window source, MessagePort port,
10 [bool canBubble = false, bool cancelable = false]) {
11 var e = dom.document.createEvent("MessageEvent");
12 e.initMessageEvent(type, canBubble, cancelable, data, origin, lastEventId,
13 LevelDom.unwrap(source), LevelDom.unwrap(port));
14 return LevelDom.wrapMessageEvent(e);
15 }
16
10 String get data() { return _ptr.data; } 17 String get data() { return _ptr.data; }
11 18
12 String get lastEventId() { return _ptr.lastEventId; } 19 String get lastEventId() { return _ptr.lastEventId; }
13 20
14 MessagePort get messagePort() { return LevelDom.wrapMessagePort(_ptr.messagePo rt); } 21 MessagePort get messagePort() { return LevelDom.wrapMessagePort(_ptr.messagePo rt); }
15 22
16 String get origin() { return _ptr.origin; } 23 String get origin() { return _ptr.origin; }
17 24
18 Window get source() { return LevelDom.wrapWindow(_ptr.source); } 25 Window get source() { return LevelDom.wrapWindow(_ptr.source); }
19 26
20 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S tring dataArg, String originArg, String lastEventIdArg, Window sourceArg, Messag ePort messagePort) { 27 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S tring dataArg, String originArg, String lastEventIdArg, Window sourceArg, Messag ePort messagePort) {
21 _ptr.initMessageEvent(typeArg, canBubbleArg, cancelableArg, dataArg, originA rg, lastEventIdArg, LevelDom.unwrap(sourceArg), LevelDom.unwrap(messagePort)); 28 _ptr.initMessageEvent(typeArg, canBubbleArg, cancelableArg, dataArg, originA rg, lastEventIdArg, LevelDom.unwrap(sourceArg), LevelDom.unwrap(messagePort));
22 return; 29 return;
23 } 30 }
24 } 31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698