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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/widget/findinpage/FindResultBar.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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.findinpage; 5 package org.chromium.chrome.browser.widget.findinpage;
6 6
7 import android.animation.Animator; 7 import android.animation.Animator;
8 import android.animation.AnimatorListenerAdapter; 8 import android.animation.AnimatorListenerAdapter;
9 import android.animation.ObjectAnimator; 9 import android.animation.ObjectAnimator;
10 import android.annotation.SuppressLint; 10 import android.annotation.SuppressLint;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 private ArrayList<Tickmark> mTickmarks = new ArrayList<Tickmark>(0); 67 private ArrayList<Tickmark> mTickmarks = new ArrayList<Tickmark>(0);
68 private int mBarHeightForWhichTickmarksWereCached = -1; 68 private int mBarHeightForWhichTickmarksWereCached = -1;
69 69
70 private Animator mVisibilityAnimation; 70 private Animator mVisibilityAnimation;
71 private boolean mDismissing; 71 private boolean mDismissing;
72 72
73 private final Paint mFillPaint; 73 private final Paint mFillPaint;
74 private final Paint mStrokePaint; 74 private final Paint mStrokePaint;
75 75
76 boolean mWaitingForActivateAck = false; 76 boolean mWaitingForActivateAck;
77 77
78 private static Comparator<RectF> sComparator = new Comparator<RectF>() { 78 private static Comparator<RectF> sComparator = new Comparator<RectF>() {
79 @Override 79 @Override
80 public int compare(RectF a, RectF b) { 80 public int compare(RectF a, RectF b) {
81 int top = Float.compare(a.top, b.top); 81 int top = Float.compare(a.top, b.top);
82 if (top != 0) return top; 82 if (top != 0) return top;
83 return Float.compare(a.left, b.left); 83 return Float.compare(a.left, b.left);
84 } 84 }
85 }; 85 };
86 86
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 rect.offset(LocalizationUtils.isLayoutRtl() ? -0.5f : 0.5f, 0); 391 rect.offset(LocalizationUtils.isLayoutRtl() ? -0.5f : 0.5f, 0);
392 return rect; 392 return rect;
393 } 393 }
394 @SuppressFBWarnings("EQ_COMPARETO_USE_OBJECT_EQUAL") 394 @SuppressFBWarnings("EQ_COMPARETO_USE_OBJECT_EQUAL")
395 @Override 395 @Override
396 public int compareTo(Tickmark other) { 396 public int compareTo(Tickmark other) {
397 return Float.compare(centerY(), other.centerY()); 397 return Float.compare(centerY(), other.centerY());
398 } 398 }
399 } 399 }
400 } 400 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698