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

Unified Diff: lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
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/dartium/html_dartium.dart
diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
index 4ee550b41929eda105eed8eab589cc0f2a20f6db..b223cbaed420da6ad14728e164468e9aed4678b0 100644
--- a/lib/html/dartium/html_dartium.dart
+++ b/lib/html/dartium/html_dartium.dart
@@ -40736,6 +40736,15 @@ class _TextFactoryProvider {
// 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 Ditto, autogenerated files?
Anders Johnsen 2012/08/22 11:59:15 Yep, autogenerated.
+// 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