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

Unified Diff: lib/html/dart2js/html_dart2js.dart

Issue 10878006: Re-introduce the _dispatchEvent function in lib/html/src/Isolates.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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:
Download patch
Index: lib/html/dart2js/html_dart2js.dart
diff --git a/lib/html/dart2js/html_dart2js.dart b/lib/html/dart2js/html_dart2js.dart
index 8ee2dd8637a4209b45fe65f6e5ffd67914321f2d..67b2d0e5644d154eb21b3d7ae408db7aae10eb64 100644
--- a/lib/html/dart2js/html_dart2js.dart
+++ b/lib/html/dart2js/html_dart2js.dart
@@ -37094,6 +37094,15 @@ class _HttpRequestUtils {
// 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.
+void _dispatchEvent(String receiver, var message) {
+ var event = document.$dom_createEvent('TextEvent');
+ event.initTextEvent(receiver, false, false, window, JSON.stringify(message));
+ window.$dom_dispatchEvent(event);
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
Mads Ager (google) 2012/08/22 11:57:41 Why do we have the second copyright notice here?
+// 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.
+
typedef Object ComputeValue();
class _MeasurementRequest<T> {

Powered by Google App Engine
This is Rietveld 408576698