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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.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.toolbar; 5 package org.chromium.chrome.browser.toolbar;
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.ValueAnimator; 9 import android.animation.ValueAnimator;
10 import android.animation.ValueAnimator.AnimatorUpdateListener; 10 import android.animation.ValueAnimator.AnimatorUpdateListener;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // Whether dark tint should be applied to icons and text. 122 // Whether dark tint should be applied to icons and text.
123 private boolean mUseDarkColors = true; 123 private boolean mUseDarkColors = true;
124 124
125 private ValueAnimator mBrandColorTransitionAnimation; 125 private ValueAnimator mBrandColorTransitionAnimation;
126 private boolean mBrandColorTransitionActive; 126 private boolean mBrandColorTransitionActive;
127 127
128 private CustomTabToolbarAnimationDelegate mAnimDelegate; 128 private CustomTabToolbarAnimationDelegate mAnimDelegate;
129 private int mState = STATE_DOMAIN_ONLY; 129 private int mState = STATE_DOMAIN_ONLY;
130 private String mFirstUrl; 130 private String mFirstUrl;
131 private boolean mShowsOfflinePage = false; 131 private boolean mShowsOfflinePage;
132 132
133 private Runnable mTitleAnimationStarter = new Runnable() { 133 private Runnable mTitleAnimationStarter = new Runnable() {
134 @Override 134 @Override
135 public void run() { 135 public void run() {
136 mAnimDelegate.startTitleAnimation(getContext()); 136 mAnimDelegate.startTitleAnimation(getContext());
137 } 137 }
138 }; 138 };
139 139
140 /** 140 /**
141 * Constructor for getting this class inflated from an xml layout file. 141 * Constructor for getting this class inflated from an xml layout file.
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 755
756 @Override 756 @Override
757 protected void setAppMenuUpdateBadgeToVisible(boolean animate) {} 757 protected void setAppMenuUpdateBadgeToVisible(boolean animate) {}
758 758
759 @Override 759 @Override
760 public View getMenuButtonWrapper() { 760 public View getMenuButtonWrapper() {
761 // This class has no menu button wrapper, so return the menu button inst ead. 761 // This class has no menu button wrapper, so return the menu button inst ead.
762 return mMenuButton; 762 return mMenuButton;
763 } 763 }
764 } 764 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698