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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelper.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.compositor.overlays.strip; 5 package org.chromium.chrome.browser.compositor.overlays.strip;
6 6
7 import static org.chromium.chrome.browser.compositor.layouts.ChromeAnimation.Ani matableAnimation.createAnimation; 7 import static org.chromium.chrome.browser.compositor.layouts.ChromeAnimation.Ani matableAnimation.createAnimation;
8 8
9 import android.annotation.SuppressLint; 9 import android.annotation.SuppressLint;
10 import android.content.Context; 10 import android.content.Context;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 private final ListPopupWindow mTabMenu; 125 private final ListPopupWindow mTabMenu;
126 126
127 // Strip State 127 // Strip State
128 private StackScroller mScroller; 128 private StackScroller mScroller;
129 private int mScrollOffset; 129 private int mScrollOffset;
130 private float mMinScrollOffset; 130 private float mMinScrollOffset;
131 private float mCachedTabWidth; 131 private float mCachedTabWidth;
132 132
133 // Reorder State 133 // Reorder State
134 private int mReorderState = REORDER_SCROLL_NONE; 134 private int mReorderState = REORDER_SCROLL_NONE;
135 private boolean mInReorderMode = false; 135 private boolean mInReorderMode;
136 private float mLastReorderX; 136 private float mLastReorderX;
137 private long mLastReorderScrollTime; 137 private long mLastReorderScrollTime;
138 138
139 // UI State 139 // UI State
140 private StripLayoutTab mInteractingTab; 140 private StripLayoutTab mInteractingTab;
141 private CompositorButton mLastPressedCloseButton; 141 private CompositorButton mLastPressedCloseButton;
142 private float mWidth; 142 private float mWidth;
143 private float mHeight; 143 private float mHeight;
144 private long mLastSpinnerUpdate; 144 private long mLastSpinnerUpdate;
145 private float mLeftMargin; 145 private float mLeftMargin;
(...skipping 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1795 } else { 1795 } else {
1796 resId = isHidden 1796 resId = isHidden
1797 ? R.string.accessibility_tabstrip_identifier 1797 ? R.string.accessibility_tabstrip_identifier
1798 : R.string.accessibility_tabstrip_identifier_selected; 1798 : R.string.accessibility_tabstrip_identifier_selected;
1799 } 1799 }
1800 builder.append(mContext.getResources().getString(resId)); 1800 builder.append(mContext.getResources().getString(resId));
1801 1801
1802 stripTab.setAccessibilityDescription(builder.toString()); 1802 stripTab.setAccessibilityDescription(builder.toString());
1803 } 1803 }
1804 } 1804 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698