| 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 // TODO(jacobr): there is a lot of dead code in this class. Checking is as is | 5 // TODO(jacobr): there is a lot of dead code in this class. Checking is as is |
| 8 // and then doing a large pass to remove functionality that doesn't make sense | 6 // and then doing a large pass to remove functionality that doesn't make sense |
| 9 // given the UI layout. | 7 // given the UI layout. |
| 10 | 8 |
| 11 /** | 9 /** |
| 12 * Front page of Swarm. | 10 * Front page of Swarm. |
| (...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 * [Feed]. | 966 * [Feed]. |
| 969 */ | 967 */ |
| 970 DataSourceView findView(Feed dataSource) { | 968 DataSourceView findView(Feed dataSource) { |
| 971 return dataSourceView.getSubview(dataSourceView.findIndex(dataSource)); | 969 return dataSourceView.getSubview(dataSourceView.findIndex(dataSource)); |
| 972 } | 970 } |
| 973 | 971 |
| 974 bool inCurrentView(Article article) { | 972 bool inCurrentView(Article article) { |
| 975 return dataSourceView.findIndex(article.dataSource) != null; | 973 return dataSourceView.findIndex(article.dataSource) != null; |
| 976 } | 974 } |
| 977 } | 975 } |
| OLD | NEW |