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

Unified Diff: samples/ui_lib/touch/Scroller.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/ui_lib/touch/Scrollbar.dart ('k') | samples/ui_lib/touch/TouchUtil.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/ui_lib/touch/Scroller.dart
diff --git a/samples/ui_lib/touch/Scroller.dart b/samples/ui_lib/touch/Scroller.dart
index 455b6f27afeaa7e4b73a6e4e0a39e458eca953ea..54304cb26fd2fb5ced07973737bfcd08c621b075 100644
--- a/samples/ui_lib/touch/Scroller.dart
+++ b/samples/ui_lib/touch/Scroller.dart
@@ -239,35 +239,35 @@ class Scroller implements Draggable, MomentumDelegate {
_initLayer();
}
- EventListenerList get onScrollerStart() {
+ EventListenerList get onScrollerStart {
if (_onScrollerStart === null) {
_onScrollerStart = new SimpleEventListenerList();
}
return _onScrollerStart;
}
- EventListenerList get onScrollerEnd() {
+ EventListenerList get onScrollerEnd {
if (_onScrollerEnd === null) {
_onScrollerEnd = new SimpleEventListenerList();
}
return _onScrollerEnd;
}
- EventListenerList get onScrollerDragEnd() {
+ EventListenerList get onScrollerDragEnd {
if (_onScrollerDragEnd === null) {
_onScrollerDragEnd = new SimpleEventListenerList();
}
return _onScrollerDragEnd;
}
- EventListenerList get onContentMoved() {
+ EventListenerList get onContentMoved {
if (_onContentMoved === null) {
_onContentMoved = new SimpleEventListenerList();
}
return _onContentMoved;
}
- EventListenerList get onDecelStart() {
+ EventListenerList get onDecelStart {
if (_onDecelStart === null) {
_onDecelStart = new SimpleEventListenerList();
}
@@ -308,7 +308,7 @@ class Scroller implements Draggable, MomentumDelegate {
/**
* Coordinate we would end up at if we did nothing.
*/
- Coordinate get currentTarget() {
+ Coordinate get currentTarget {
Coordinate end = _momentum.destination;
if (end === null) {
end = _contentOffset;
@@ -316,7 +316,7 @@ class Scroller implements Draggable, MomentumDelegate {
return end;
}
- Coordinate get contentOffset() => _contentOffset;
+ Coordinate get contentOffset => _contentOffset;
/**
* Animate the position of the scroller to the specified [x], [y] coordinates
@@ -398,7 +398,7 @@ class Scroller implements Draggable, MomentumDelegate {
num getMaxPointY()=> _maxPoint.y;
num getMinPointY() => _minPoint.y;
- Momentum get momentum() => _momentum;
+ Momentum get momentum => _momentum;
/**
* Provide access to the touch handler that the scroller created to manage
« no previous file with comments | « samples/ui_lib/touch/Scrollbar.dart ('k') | samples/ui_lib/touch/TouchUtil.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698