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

Side by Side Diff: samples/swarm/swarm_ui_lib/observable/observable.dart

Issue 14246008: Allow Object when doing lookups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix type error. Created 7 years, 6 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) 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 library observable; 5 library observable;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 part 'ChangeEvent.dart'; 9 part 'ChangeEvent.dart';
10 part 'EventBatch.dart'; 10 part 'EventBatch.dart';
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 } 275 }
276 276
277 List sublist(int start, [int end]) { 277 List sublist(int start, [int end]) {
278 throw new UnimplementedError(); 278 throw new UnimplementedError();
279 } 279 }
280 280
281 Iterable getRange(int start, int end) { 281 Iterable getRange(int start, int end) {
282 throw new UnimplementedError(); 282 throw new UnimplementedError();
283 } 283 }
284 284
285 bool contains(T element) { 285 bool contains(Object element) {
286 throw new UnimplementedError(); 286 throw new UnimplementedError();
287 } 287 }
288 288
289 T reduce(T combine(T previousValue, T element)) { 289 T reduce(T combine(T previousValue, T element)) {
290 throw new UnimplementedError(); 290 throw new UnimplementedError();
291 } 291 }
292 292
293 dynamic fold(var initialValue, 293 dynamic fold(var initialValue,
294 dynamic combine(var previousValue, T element)) { 294 dynamic combine(var previousValue, T element)) {
295 throw new UnimplementedError(); 295 throw new UnimplementedError();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 // Only fire on an actual change. 346 // Only fire on an actual change.
347 if (!identical(newValue, _value)) { 347 if (!identical(newValue, _value)) {
348 final oldValue = _value; 348 final oldValue = _value;
349 _value = newValue; 349 _value = newValue;
350 recordPropertyUpdate("value", newValue, oldValue); 350 recordPropertyUpdate("value", newValue, oldValue);
351 } 351 }
352 } 352 }
353 353
354 T _value; 354 T _value;
355 } 355 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698