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.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.AnimatorSet; | 9 import android.animation.AnimatorSet; |
10 import android.animation.ObjectAnimator; | 10 import android.animation.ObjectAnimator; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 private ColorDrawable mTabSwitcherAnimationBgOverlay; | 147 private ColorDrawable mTabSwitcherAnimationBgOverlay; |
148 private TabSwitcherDrawable mTabSwitcherAnimationTabStackDrawable; | 148 private TabSwitcherDrawable mTabSwitcherAnimationTabStackDrawable; |
149 private Drawable mTabSwitcherAnimationMenuDrawable; | 149 private Drawable mTabSwitcherAnimationMenuDrawable; |
150 private Drawable mTabSwitcherAnimationMenuBadgeDarkDrawable; | 150 private Drawable mTabSwitcherAnimationMenuBadgeDarkDrawable; |
151 private Drawable mTabSwitcherAnimationMenuBadgeLightDrawable; | 151 private Drawable mTabSwitcherAnimationMenuBadgeLightDrawable; |
152 // Value that determines the amount of transition from the normal toolbar mo
de to TabSwitcher | 152 // Value that determines the amount of transition from the normal toolbar mo
de to TabSwitcher |
153 // mode. 0 = entirely in normal mode and 1.0 = entirely in TabSwitcher mode
. In between values | 153 // mode. 0 = entirely in normal mode and 1.0 = entirely in TabSwitcher mode
. In between values |
154 // can be used for animating between the two view modes. | 154 // can be used for animating between the two view modes. |
155 @ViewDebug.ExportedProperty(category = "chrome") | 155 @ViewDebug.ExportedProperty(category = "chrome") |
156 private float mTabSwitcherModePercent = 0; | 156 private float mTabSwitcherModePercent; |
157 | 157 |
158 // Used to clip the toolbar during the fade transition into and out of TabSw
itcher mode. Only | 158 // Used to clip the toolbar during the fade transition into and out of TabSw
itcher mode. Only |
159 // used when |mAnimateNormalToolbar| is false. | 159 // used when |mAnimateNormalToolbar| is false. |
160 @ViewDebug.ExportedProperty(category = "chrome") | 160 @ViewDebug.ExportedProperty(category = "chrome") |
161 private Rect mClipRect; | 161 private Rect mClipRect; |
162 | 162 |
163 private OnClickListener mTabSwitcherListener; | 163 private OnClickListener mTabSwitcherListener; |
164 private OnClickListener mNewTabListener; | 164 private OnClickListener mNewTabListener; |
165 | 165 |
166 @ViewDebug.ExportedProperty(category = "chrome") | 166 @ViewDebug.ExportedProperty(category = "chrome") |
(...skipping 2071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2238 }); | 2238 }); |
2239 | 2239 |
2240 if (mControlsVisibilityDelegate != null) { | 2240 if (mControlsVisibilityDelegate != null) { |
2241 mFullscreenCalloutToken = | 2241 mFullscreenCalloutToken = |
2242 mControlsVisibilityDelegate.showControlsPersistentAndClearOl
dToken( | 2242 mControlsVisibilityDelegate.showControlsPersistentAndClearOl
dToken( |
2243 mFullscreenCalloutToken); | 2243 mFullscreenCalloutToken); |
2244 } | 2244 } |
2245 } | 2245 } |
2246 } | 2246 } |
2247 | 2247 |
OLD | NEW |