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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/widget/ToolbarProgressBarAnimatingView.java

Issue 2548013002: Remove redundant field initialization in Java code. (Closed)
Patch Set: rebase Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.widget; 5 package org.chromium.chrome.browser.widget;
6 6
7 import android.animation.Animator; 7 import android.animation.Animator;
8 import android.animation.Animator.AnimatorListener; 8 import android.animation.Animator.AnimatorListener;
9 import android.animation.AnimatorListenerAdapter; 9 import android.animation.AnimatorListenerAdapter;
10 import android.animation.AnimatorSet; 10 import android.animation.AnimatorSet;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 /** The fraction of overall completion that the small animating bar should b e expanded at. */ 52 /** The fraction of overall completion that the small animating bar should b e expanded at. */
53 private static final float SMALL_BAR_EXPANSION_COMPLETE = 0.6f; 53 private static final float SMALL_BAR_EXPANSION_COMPLETE = 0.6f;
54 54
55 /** The maximum size of the animating view. */ 55 /** The maximum size of the animating view. */
56 private static final float ANIMATING_VIEW_MAX_WIDTH_DP = 400; 56 private static final float ANIMATING_VIEW_MAX_WIDTH_DP = 400;
57 57
58 /** Interpolator for enter and exit animation. */ 58 /** Interpolator for enter and exit animation. */
59 private final BakedBezierInterpolator mBezier = BakedBezierInterpolator.FADE _OUT_CURVE; 59 private final BakedBezierInterpolator mBezier = BakedBezierInterpolator.FADE _OUT_CURVE;
60 60
61 /** The current width of the progress bar. */ 61 /** The current width of the progress bar. */
62 private float mProgressWidth = 0; 62 private float mProgressWidth;
63 63
64 /** The set of individual animators that constitute the whole animation sequ ence. */ 64 /** The set of individual animators that constitute the whole animation sequ ence. */
65 private final AnimatorSet mAnimatorSet; 65 private final AnimatorSet mAnimatorSet;
66 66
67 /** The animator controlling the fast animation. */ 67 /** The animator controlling the fast animation. */
68 private final ValueAnimator mFastAnimation; 68 private final ValueAnimator mFastAnimation;
69 69
70 /** The animator controlling the slow animation. */ 70 /** The animator controlling the slow animation. */
71 private final ValueAnimator mSlowAnimation; 71 private final ValueAnimator mSlowAnimation;
72 72
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 updateAnimation(mLastUpdatedAnimation, mLastAnimatedFraction); 271 updateAnimation(mLastUpdatedAnimation, mLastAnimatedFraction);
272 } 272 }
273 273
274 /** 274 /**
275 * @param color The Android color that the animating bar should be. 275 * @param color The Android color that the animating bar should be.
276 */ 276 */
277 public void setColor(int color) { 277 public void setColor(int color) {
278 mAnimationDrawable.setColor(color); 278 mAnimationDrawable.setColor(color);
279 } 279 }
280 } 280 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698