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

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

Issue 11337019: Use patching for dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 class _EventHandler extends NativeFieldWrapperClass1 {
6 _EventHandler() { }
7
8 static void _start() {
9 if (_eventHandler === null) {
10 _eventHandler = new _EventHandler();
11 _eventHandler._doStart();
12 }
13 }
14
15 void _doStart() native "EventHandler_Start";
16
17 static _sendData(Object sender, ReceivePort receivePort, int data) {
18 if (_eventHandler !== null) {
19 _eventHandler._doSendData(sender, receivePort, data);
20 }
21 }
22
23 void _doSendData(Object sender, ReceivePort receivePort, int data)
24 native "EventHandler_SendData";
25
26 static _EventHandler _eventHandler;
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698