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/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, 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/html/src/MessageEventWrappingImplementation.dart
diff --git a/client/html/generated/src/wrapping/_MessageEventWrappingImplementation.dart b/client/html/src/MessageEventWrappingImplementation.dart
similarity index 70%
rename from client/html/generated/src/wrapping/_MessageEventWrappingImplementation.dart
rename to client/html/src/MessageEventWrappingImplementation.dart
index c196ea95a05af79a401e2637448a2978a9db1c6d..a054559c091804fa0d90b9e4219a9f75de86f159 100644
--- a/client/html/generated/src/wrapping/_MessageEventWrappingImplementation.dart
+++ b/client/html/src/MessageEventWrappingImplementation.dart
@@ -2,11 +2,18 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// WARNING: Do not edit - generated code.
-
class MessageEventWrappingImplementation extends EventWrappingImplementation implements MessageEvent {
MessageEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
+ factory MessageEventWrappingImplementation(String type, String data,
+ String origin, String lastEventId, Window source, MessagePort port,
+ [bool canBubble = false, bool cancelable = false]) {
+ var e = dom.document.createEvent("MessageEvent");
+ e.initMessageEvent(type, canBubble, cancelable, data, origin, lastEventId,
+ LevelDom.unwrap(source), LevelDom.unwrap(port));
+ return LevelDom.wrapMessageEvent(e);
+ }
+
String get data() { return _ptr.data; }
String get lastEventId() { return _ptr.lastEventId; }

Powered by Google App Engine
This is Rietveld 408576698