OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |