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

Side by Side Diff: runtime/bin/eventhandler_patch.dart

Issue 11337019: Use patching for dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 patch class _EventHandler {
6 /* patch */ static void _start() {
7 if (_eventHandler === null) {
8 _eventHandler = new _EventHandlerImpl();
9 _eventHandler._start();
10 }
11 }
12
13 /* patch */ static _sendData(Object sender,
14 ReceivePort receivePort,
15 int data) {
16 if (_eventHandler !== null) {
17 _eventHandler._sendData(sender, receivePort, data);
18 }
19 }
20
21 static _EventHandlerImpl _eventHandler;
22 }
23
24
25 class _EventHandlerImpl extends NativeFieldWrapperClass1 {
26 _EventHandlerImpl() { }
27 void _start() native "EventHandler_Start";
28 void _sendData(Object sender, ReceivePort receivePort, int data)
29 native "EventHandler_SendData";
30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698