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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: client/dom/generated/src/wrapping/_MessagePortWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_MessagePortWrappingImplementation.dart b/client/dom/generated/src/wrapping/_MessagePortWrappingImplementation.dart
index 0a5f409af2d2c709e761d76d0441de77518e18b8..fb0523b10e1ce679d8b2f247e79d1b2d763040b5 100644
--- a/client/dom/generated/src/wrapping/_MessagePortWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_MessagePortWrappingImplementation.dart
@@ -4,12 +4,71 @@
// WARNING: Do not edit - generated code.
-class _MessagePortWrappingImplementation extends _EventTargetWrappingImplementation implements MessagePort {
+class _MessagePortWrappingImplementation extends DOMWrapperBase implements MessagePort {
_MessagePortWrappingImplementation() : super() {}
static create__MessagePortWrappingImplementation() native {
return new _MessagePortWrappingImplementation();
}
+ EventListener get onmessage() { return _get__MessagePort_onmessage(this); }
+ static EventListener _get__MessagePort_onmessage(var _this) native;
+
+ void set onmessage(EventListener value) { _set__MessagePort_onmessage(this, value); }
+ static void _set__MessagePort_onmessage(var _this, EventListener value) native;
+
+ void addEventListener(String type, EventListener listener, [bool useCapture = null]) {
+ if (useCapture === null) {
+ _addEventListener(this, type, listener);
+ return;
+ } else {
+ _addEventListener_2(this, type, listener, useCapture);
+ return;
+ }
+ }
+ static void _addEventListener(receiver, type, listener) native;
+ static void _addEventListener_2(receiver, type, listener, useCapture) native;
+
+ void close() {
+ _close(this);
+ return;
+ }
+ static void _close(receiver) native;
+
+ bool dispatchEvent(Event evt) {
+ return _dispatchEvent(this, evt);
+ }
+ static bool _dispatchEvent(receiver, evt) native;
+
+ void postMessage(String message) {
+ _postMessage(this, message);
+ return;
+ }
+ static void _postMessage(receiver, message) native;
+
+ void removeEventListener(String type, EventListener listener, [bool useCapture = null]) {
+ if (useCapture === null) {
+ _removeEventListener(this, type, listener);
+ return;
+ } else {
+ _removeEventListener_2(this, type, listener, useCapture);
+ return;
+ }
+ }
+ static void _removeEventListener(receiver, type, listener) native;
+ static void _removeEventListener_2(receiver, type, listener, useCapture) native;
+
+ void start() {
+ _start(this);
+ return;
+ }
+ static void _start(receiver) native;
+
+ void webkitPostMessage(String message) {
+ _webkitPostMessage(this, message);
+ return;
+ }
+ static void _webkitPostMessage(receiver, message) native;
+
String get typeName() { return "MessagePort"; }
}

Powered by Google App Engine
This is Rietveld 408576698