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

Side by Side Diff: samples/ui_lib/observable/EventBatch.dart

Issue 11267018: Make getKeys, getValues getters (keys, values). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. 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 | « samples/ui_lib/layout/GridTracks.dart ('k') | samples/ui_lib/util/CollectionUtils.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) 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 /** 5 /**
6 * Accumulates change events from several observable objects. 6 * Accumulates change events from several observable objects.
7 * 7 *
8 * wrap() is public and used by client code. The other methods are used by 8 * wrap() is public and used by client code. The other methods are used by
9 * AbstractObservable, which works with this class to implement batching. 9 * AbstractObservable, which works with this class to implement batching.
10 */ 10 */
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 summary = new EventSummary(obj); 90 summary = new EventSummary(obj);
91 summaries[uid] = summary; 91 summaries[uid] = summary;
92 } 92 }
93 return summary; 93 return summary;
94 } 94 }
95 95
96 /** Fires all events at once. */ 96 /** Fires all events at once. */
97 void _notify() { 97 void _notify() {
98 assert(!sealed); 98 assert(!sealed);
99 sealed = true; 99 sealed = true;
100 for (final summary in summaries.getValues()) { 100 for (final summary in summaries.values) {
101 summary.notify(); 101 summary.notify();
102 } 102 }
103 } 103 }
104 } 104 }
OLDNEW
« no previous file with comments | « samples/ui_lib/layout/GridTracks.dart ('k') | samples/ui_lib/util/CollectionUtils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698