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

Unified Diff: client/touch/Momentum.dart

Issue 8966029: Report errors and warnings for hiding elements, issue 572. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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
Index: client/touch/Momentum.dart
diff --git a/client/touch/Momentum.dart b/client/touch/Momentum.dart
index d46665fbb1565c6b776d5a6ad08ed99cd29a8bdd..a351e5a23bb9120288c4a81d3a5da1f75e397883 100644
--- a/client/touch/Momentum.dart
+++ b/client/touch/Momentum.dart
@@ -240,28 +240,28 @@ class SingleDimensionPhysics {
}
void configure(num minCoord, num maxCoord,
- num initialOffset, num customDecelerationFactor,
- num velocity) {
+ num initialOffset, num customDecelerationFactor_,
+ num velocity_) {
_bouncingState = BouncingState.NOT_BOUNCING;
_minCoord = minCoord;
_maxCoord = maxCoord;
_currentOffset = initialOffset;
- this.customDecelerationFactor = customDecelerationFactor;
- _adjustInitialVelocityAndBouncingState(velocity);
+ this.customDecelerationFactor = customDecelerationFactor_;
+ _adjustInitialVelocityAndBouncingState(velocity_);
}
num solve(num initialOffset, num targetOffset,
- num customDecelerationFactor) {
+ num customDecelerationFactor_) {
initialOffset = initialOffset.round();
targetOffset = targetOffset.round();
if (initialOffset == targetOffset) {
return 0;
}
- return Solver.solve((num velocity) {
+ return Solver.solve((num velocity_) {
// Don't specify min and max coordinates as we don't need to bother
// with the simulating bouncing off the edges.
configure(null, null, initialOffset.round(),
- customDecelerationFactor, velocity);
+ customDecelerationFactor_, velocity_);
stepAll();
return _currentOffset;
},
@@ -426,11 +426,11 @@ class TimeoutMomentum implements Momentum {
void onTransitionEnd() {
}
- Coordinate calculateVelocity(Coordinate start, Coordinate target,
+ Coordinate calculateVelocity(Coordinate start_, Coordinate target,
[num decelerationFactor = null]) {
return new Coordinate(
- physicsX.solve(start.x, target.x, decelerationFactor),
- physicsY.solve(start.y, target.y, decelerationFactor));
+ physicsX.solve(start_.x, target.x, decelerationFactor),
+ physicsY.solve(start_.y, target.y, decelerationFactor));
}
bool start(Coordinate velocity, Coordinate minCoord, Coordinate maxCoord,

Powered by Google App Engine
This is Rietveld 408576698