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

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

Issue 11361190: a === b -> identical(a, b) (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
« no previous file with comments | « runtime/bin/builtin.dart ('k') | runtime/bin/process_patch.dart » ('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) 2012, the Dart project authors. Please see the AUTHORS file 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 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 patch class _EventHandler { 5 patch class _EventHandler {
6 /* patch */ static void _start() { 6 /* patch */ static void _start() {
7 if (_eventHandler === null) { 7 if (_eventHandler == null) {
8 _eventHandler = new _EventHandlerImpl(); 8 _eventHandler = new _EventHandlerImpl();
9 _eventHandler._start(); 9 _eventHandler._start();
10 } 10 }
11 } 11 }
12 12
13 /* patch */ static _sendData(Object sender, 13 /* patch */ static _sendData(Object sender,
14 ReceivePort receivePort, 14 ReceivePort receivePort,
15 int data) { 15 int data) {
16 if (_eventHandler !== null) { 16 if (_eventHandler != null) {
17 _eventHandler._sendData(sender, receivePort, data); 17 _eventHandler._sendData(sender, receivePort, data);
18 } 18 }
19 } 19 }
20 20
21 static _EventHandlerImpl _eventHandler; 21 static _EventHandlerImpl _eventHandler;
22 } 22 }
23 23
24 24
25 class _EventHandlerImpl extends NativeFieldWrapperClass1 { 25 class _EventHandlerImpl extends NativeFieldWrapperClass1 {
26 _EventHandlerImpl() { } 26 _EventHandlerImpl() { }
27 void _start() native "EventHandler_Start"; 27 void _start() native "EventHandler_Start";
28 void _sendData(Object sender, ReceivePort receivePort, int data) 28 void _sendData(Object sender, ReceivePort receivePort, int data)
29 native "EventHandler_SendData"; 29 native "EventHandler_SendData";
30 } 30 }
OLDNEW
« no previous file with comments | « runtime/bin/builtin.dart ('k') | runtime/bin/process_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698