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

Unified Diff: samples/ui_lib/touch/Momentum.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/Geometry.dart ('k') | samples/ui_lib/touch/Scrollbar.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/ui_lib/touch/Momentum.dart
diff --git a/samples/ui_lib/touch/Momentum.dart b/samples/ui_lib/touch/Momentum.dart
index 28069d1ece233960101620d01161082b01087556..9ed0ef10f8874f159a44e4bac7e9a0832477b2a4 100644
--- a/samples/ui_lib/touch/Momentum.dart
+++ b/samples/ui_lib/touch/Momentum.dart
@@ -27,9 +27,9 @@ interface Momentum default TimeoutMomentum {
Momentum(MomentumDelegate delegate, [num defaultDecelerationFactor]);
- bool get decelerating();
+ bool get decelerating;
- num get decelerationFactor();
+ num get decelerationFactor;
/**
* Transition end handler. This function must be invoked after any transition
@@ -62,7 +62,7 @@ interface Momentum default TimeoutMomentum {
void abort();
/** null if no transition is in progress. */
- Coordinate get destination();
+ Coordinate get destination;
}
/**
@@ -406,8 +406,8 @@ class TimeoutMomentum implements Momentum {
}
}
- bool get decelerating() => _decelerating;
- num get decelerationFactor() => _customDecelerationFactor;
+ bool get decelerating => _decelerating;
+ num get decelerationFactor => _customDecelerationFactor;
/**
* Checks whether or not an animation step is necessary or not. Animations
@@ -543,7 +543,7 @@ class TimeoutMomentum implements Momentum {
return velocity;
}
- Coordinate get destination() {
+ Coordinate get destination {
if (!_moves.isEmpty()) {
final lastMove = _moves.last();
return new Coordinate(lastMove.x, lastMove.y);
« no previous file with comments | « samples/ui_lib/touch/Geometry.dart ('k') | samples/ui_lib/touch/Scrollbar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698