| OLD | NEW |
| 1 part of swarmlib; | |
| 2 | |
| 3 // 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 |
| 4 // 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 |
| 5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 6 | 4 |
| 7 /** | 5 /** |
| 8 * The top-level class for the UI state. UI state is essentially a "model" from | 6 * The top-level class for the UI state. UI state is essentially a "model" from |
| 9 * the view's perspective but whose data just describes the UI itself. It | 7 * the view's perspective but whose data just describes the UI itself. It |
| 10 * contains data like the currently selected story, etc. | 8 * contains data like the currently selected story, etc. |
| 11 */ | 9 */ |
| 12 // TODO(jimhug): Split the two classes here into framework and app-specific. | 10 // TODO(jimhug): Split the two classes here into framework and app-specific. |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 _feedIterator = new BiIterator<Feed>(_sectionIterator.current.feeds, | 288 _feedIterator = new BiIterator<Feed>(_sectionIterator.current.feeds, |
| 291 _feedIterator.currentIndex.listeners); | 289 _feedIterator.currentIndex.listeners); |
| 292 _articleIterator = | 290 _articleIterator = |
| 293 new BiIterator<Article>(_feedIterator.current.articles, | 291 new BiIterator<Article>(_feedIterator.current.articles, |
| 294 _articleIterator.currentIndex.listeners); | 292 _articleIterator.currentIndex.listeners); |
| 295 } | 293 } |
| 296 | 294 |
| 297 Section get currentSection => _sectionIterator.current; | 295 Section get currentSection => _sectionIterator.current; |
| 298 Feed get currentFeed => _feedIterator.current; | 296 Feed get currentFeed => _feedIterator.current; |
| 299 } | 297 } |
| OLD | NEW |