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

Unified Diff: runtime/bin/eventhandler_patch.dart

Issue 22901017: Always initialize the EventHandler in the standalone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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:
View side-by-side diff with in-line comments
Download patch
Index: runtime/bin/eventhandler_patch.dart
diff --git a/runtime/bin/eventhandler_patch.dart b/runtime/bin/eventhandler_patch.dart
index 46c1e3dac4f3de3e80aad8b710654a9a8d4bc25d..2038a57ac3a2a19b78348cfe92243b2364a13599 100644
--- a/runtime/bin/eventhandler_patch.dart
+++ b/runtime/bin/eventhandler_patch.dart
@@ -5,28 +5,9 @@
import 'dart:nativewrappers';
patch class _EventHandler {
- /* patch */ static void _start() {
- if (_eventHandler == null) {
- _eventHandler = new _EventHandlerImpl();
- _eventHandler._start();
- }
- }
-
- /* patch */ static _sendData(Object sender,
- ReceivePort receivePort,
- int data) {
- if (_eventHandler != null) {
- _eventHandler._sendData(sender, receivePort, data);
- }
- }
-
- static _EventHandlerImpl _eventHandler;
-}
-
-
-class _EventHandlerImpl {
- _EventHandlerImpl() { }
- void _start() native "EventHandler_Start";
- void _sendData(Object sender, ReceivePort receivePort, int data)
+ /* patch */ static void _sendData(Object sender,
+ ReceivePort receivePort,
+ int data)
native "EventHandler_SendData";
}
+

Powered by Google App Engine
This is Rietveld 408576698