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

Unified Diff: samples/swarm/Views.dart

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/swarm/SwarmViews.dart ('k') | samples/third_party/dromaeo/common/BenchUtil.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/Views.dart
diff --git a/samples/swarm/Views.dart b/samples/swarm/Views.dart
index 26b7ecf867342ba2e1cf9bf02c1c21d63ab321e1..f4f8a769cf9e70933160ceb85b5557892045d337 100644
--- a/samples/swarm/Views.dart
+++ b/samples/swarm/Views.dart
@@ -10,10 +10,10 @@ interface ViewFactory<D> {
View newView(D item);
/** The width of the created view or null if the width is not fixed. */
- int get width();
+ int get width;
/** The height of the created view or null if the height is not fixed. */
- int get height();
+ int get height;
}
interface VariableSizeViewFactory<D> {
@@ -168,7 +168,7 @@ class GenericListView<D> extends View {
_lastSelectedItem = _selectedItem.value;
}
- Collection<View> get childViews() {
+ Collection<View> get childViews {
return _itemViews.getValues();
}
@@ -374,7 +374,7 @@ class GenericListView<D> extends View {
}
}
- num get _offset() {
+ num get _offset {
return scroller.verticalEnabled ?
scroller.getVerticalOffset() : scroller.getHorizontalOffset();
}
@@ -618,7 +618,7 @@ class FixedSizeListViewLayout<D> implements ListViewLayout<D> {
return itemViewFactory.newView(_data[index]);
}
- int get _itemLength() {
+ int get _itemLength {
return _vertical ? itemViewFactory.height : itemViewFactory.width;
}
« no previous file with comments | « samples/swarm/SwarmViews.dart ('k') | samples/third_party/dromaeo/common/BenchUtil.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698