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

Side by Side Diff: samples-dev/swarm/SwarmApp.dart

Issue 2850783002: Dart SDK Spelling b, c, and d. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « runtime/vm/timer.h ('k') | samples-dev/swarm/Views.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 part of swarmlib; 5 part of swarmlib;
6 6
7 /** 7 /**
8 * A simple news reader in Dart. 8 * A simple news reader in Dart.
9 */ 9 */
10 class Swarm extends App { 10 class Swarm extends App {
(...skipping 29 matching lines...) Expand all
40 }); 40 });
41 } 41 }
42 42
43 /** 43 /**
44 * Tells each data source to check the server for the latest data. 44 * Tells each data source to check the server for the latest data.
45 */ 45 */
46 void refresh() { 46 void refresh() {
47 sections.refresh(); 47 sections.refresh();
48 48
49 // Hook up listeners about any data source additions or deletions. We don't 49 // Hook up listeners about any data source additions or deletions. We don't
50 // differeniate additions or deletions just the fact that data feeds have 50 // differentiate additions or deletions just the fact that data feeds have
51 // changed. We might want more fidelity later. 51 // changed. We might want more fidelity later.
52 sections.sectionTitles.forEach((title) { 52 sections.sectionTitles.forEach((title) {
53 Section section = sections.findSection(title); 53 Section section = sections.findSection(title);
54 // TODO(terry): addChangeListener needs to return an id so previous 54 // TODO(terry): addChangeListener needs to return an id so previous
55 // listener can be removed, otherwise anonymous functions 55 // listener can be removed, otherwise anonymous functions
56 // can't easily be used. See b/5063673 56 // can't easily be used. See b/5063673
57 section.feeds.addChangeListener((data) { 57 section.feeds.addChangeListener((data) {
58 // TODO(jacobr): implement this. 58 // TODO(jacobr): implement this.
59 print("Refresh sections not impl yet."); 59 print("Refresh sections not impl yet.");
60 }); 60 });
(...skipping 21 matching lines...) Expand all
82 refresh(); 82 refresh();
83 eraseSplashScreen(); 83 eraseSplashScreen();
84 } 84 }
85 } 85 }
86 86
87 void render() { 87 void render() {
88 frontView = new FrontView(this); 88 frontView = new FrontView(this);
89 frontView.addToDocument(document.body); 89 frontView.addToDocument(document.body);
90 } 90 }
91 } 91 }
OLDNEW
« no previous file with comments | « runtime/vm/timer.h ('k') | samples-dev/swarm/Views.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698