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

Side by Side Diff: bin/eventhandler.dart

Issue 8537023: Implement automatic loading of dart:core_native_fields library (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 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
« no previous file with comments | « bin/dartutils.cc ('k') | bin/gen_snapshot.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class EventHandler extends EventHandlerNativeWrapper { 5 class EventHandler extends NativeFieldWrapperClass1 {
6 EventHandler() { } 6 EventHandler() { }
7 7
8 static void _start() { 8 static void _start() {
9 if (_eventHandler === null) { 9 if (_eventHandler === null) {
10 _eventHandler = new EventHandler(); 10 _eventHandler = new EventHandler();
11 _eventHandler._doStart(); 11 _eventHandler._doStart();
12 } 12 }
13 } 13 }
14 14
15 void _doStart() native "EventHandler_Start"; 15 void _doStart() native "EventHandler_Start";
16 16
17 static _sendData(int id, ReceivePort receivePort, int data) { 17 static _sendData(int id, ReceivePort receivePort, int data) {
18 if (_eventHandler !== null) { 18 if (_eventHandler !== null) {
19 _eventHandler._doSendData(id, receivePort, data); 19 _eventHandler._doSendData(id, receivePort, data);
20 } 20 }
21 } 21 }
22 22
23 23
24 void _doSendData(int id, ReceivePort receivePort, int data) 24 void _doSendData(int id, ReceivePort receivePort, int data)
25 native "EventHandler_SendData"; 25 native "EventHandler_SendData";
26 26
27 static EventHandler _eventHandler; 27 static EventHandler _eventHandler;
28 } 28 }
OLDNEW
« no previous file with comments | « bin/dartutils.cc ('k') | bin/gen_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698