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

Side by Side Diff: client/dom/generated/src/wrapping/_MessagePortWrappingImplementation.dart

Issue 8216018: Added DOM MessagePort support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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) 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 // WARNING: Do not edit - generated code.
6 6
7 class _MessagePortWrappingImplementation extends _EventTargetWrappingImplementat ion implements MessagePort { 7 class _MessagePortWrappingImplementation extends DOMWrapperBase implements Messa gePort {
8 _MessagePortWrappingImplementation() : super() {} 8 _MessagePortWrappingImplementation() : super() {}
9 9
10 static create__MessagePortWrappingImplementation() native { 10 static create__MessagePortWrappingImplementation() native {
11 return new _MessagePortWrappingImplementation(); 11 return new _MessagePortWrappingImplementation();
12 } 12 }
13 13
14 EventListener get onmessage() { return _get__MessagePort_onmessage(this); }
15 static EventListener _get__MessagePort_onmessage(var _this) native;
16
17 void set onmessage(EventListener value) { _set__MessagePort_onmessage(this, va lue); }
18 static void _set__MessagePort_onmessage(var _this, EventListener value) native ;
19
20 void addEventListener(String type, EventListener listener, [bool useCapture = null]) {
21 if (useCapture === null) {
22 _addEventListener(this, type, listener);
23 return;
24 } else {
25 _addEventListener_2(this, type, listener, useCapture);
26 return;
27 }
28 }
29 static void _addEventListener(receiver, type, listener) native;
30 static void _addEventListener_2(receiver, type, listener, useCapture) native;
31
32 void close() {
33 _close(this);
34 return;
35 }
36 static void _close(receiver) native;
37
38 bool dispatchEvent(Event evt) {
39 return _dispatchEvent(this, evt);
40 }
41 static bool _dispatchEvent(receiver, evt) native;
42
43 void postMessage(String message) {
44 _postMessage(this, message);
45 return;
46 }
47 static void _postMessage(receiver, message) native;
48
49 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) {
50 if (useCapture === null) {
51 _removeEventListener(this, type, listener);
52 return;
53 } else {
54 _removeEventListener_2(this, type, listener, useCapture);
55 return;
56 }
57 }
58 static void _removeEventListener(receiver, type, listener) native;
59 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ e;
60
61 void start() {
62 _start(this);
63 return;
64 }
65 static void _start(receiver) native;
66
67 void webkitPostMessage(String message) {
68 _webkitPostMessage(this, message);
69 return;
70 }
71 static void _webkitPostMessage(receiver, message) native;
72
14 String get typeName() { return "MessagePort"; } 73 String get typeName() { return "MessagePort"; }
15 } 74 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698