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

Unified Diff: client/html/generated/html/frog/MessagePort.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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/html/generated/html/frog/MessagePort.dart
diff --git a/client/html/generated/html/frog/MessagePort.dart b/client/html/generated/html/frog/MessagePort.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c73eabff770539e66f432a974e37a473cdd0b47e
--- /dev/null
+++ b/client/html/generated/html/frog/MessagePort.dart
@@ -0,0 +1,26 @@
+
+class _MessagePortImpl extends _EventTargetImpl implements MessagePort native "*MessagePort" {
+
+ _MessagePortEventsImpl get on() =>
+ new _MessagePortEventsImpl(this);
+
+ void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
+
+ void close() native;
+
+ bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);";
+
+ void postMessage(String message, [List messagePorts = null]) native;
+
+ void _removeEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.removeEventListener(type, listener, useCapture);";
+
+ void start() native;
+
+ void webkitPostMessage(String message, [List transfer = null]) native;
+}
+
+class _MessagePortEventsImpl extends _EventsImpl implements MessagePortEvents {
+ _MessagePortEventsImpl(_ptr) : super(_ptr);
+
+ EventListenerList get message() => _get('message');
+}

Powered by Google App Engine
This is Rietveld 408576698