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

Side by Side Diff: runtime/embedders/openglui/common/gl.dart

Issue 14251013: Rename unsubscribeOnError to cancelOnError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
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 library android_extension; 5 library android_extension;
6 import 'dart:async'; 6 import 'dart:async';
7 7
8 // A VERY simplified DOM. 8 // A VERY simplified DOM.
9 9
10 class BodyElement { 10 class BodyElement {
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 269
270 _EventStream(this._target, this._eventType); 270 _EventStream(this._target, this._eventType);
271 271
272 // DOM events are inherently multi-subscribers. 272 // DOM events are inherently multi-subscribers.
273 Stream<T> asBroadcastStream() => this; 273 Stream<T> asBroadcastStream() => this;
274 bool get isBroadcast => true; 274 bool get isBroadcast => true;
275 275
276 StreamSubscription<T> listen(void onData(T event), 276 StreamSubscription<T> listen(void onData(T event),
277 { void onError(AsyncError error), 277 { void onError(AsyncError error),
278 void onDone(), 278 void onDone(),
279 bool unsubscribeOnError}) { 279 bool cancelOnError}) {
280 280
281 return new _EventStreamSubscription<T>( 281 return new _EventStreamSubscription<T>(
282 this._target, this._eventType, onData); 282 this._target, this._eventType, onData);
283 } 283 }
284 } 284 }
285 285
286 class Node extends EventTarget { 286 class Node extends EventTarget {
287 Stream<KeyboardEvent> get onKeyDown => new _EventStream(this, 'keydown'); 287 Stream<KeyboardEvent> get onKeyDown => new _EventStream(this, 'keydown');
288 Stream<KeyboardEvent> get onKeyUp => new _EventStream(this, 'keyup'); 288 Stream<KeyboardEvent> get onKeyUp => new _EventStream(this, 'keyup');
289 Stream<MouseEvent> get onMouseDown => new _EventStream(this, 'mousedown'); 289 Stream<MouseEvent> get onMouseDown => new _EventStream(this, 'mousedown');
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 1202
1203 // TODO(vsm): Kill. 1203 // TODO(vsm): Kill.
1204 noSuchMethod(invocation) { 1204 noSuchMethod(invocation) {
1205 throw new Exception('Unimplemented/unknown ${invocation.memberName}'); 1205 throw new Exception('Unimplemented/unknown ${invocation.memberName}');
1206 } 1206 }
1207 } 1207 }
1208 1208
1209 var sfx_extension = 'raw'; 1209 var sfx_extension = 'raw';
1210 int _loadSample(String s) native "LoadSample"; 1210 int _loadSample(String s) native "LoadSample";
1211 int _playSample(String s) native "PlaySample"; 1211 int _playSample(String s) native "PlaySample";
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698