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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java

Issue 1827183002: Enable url path fading all on Android configurations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test by using the full text from the UrlContainer Created 4 years, 8 months 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.AnimatorSet; 9 import android.animation.AnimatorSet;
10 import android.animation.ObjectAnimator; 10 import android.animation.ObjectAnimator;
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 mForceTextureCapture = forceTextureCapture; 1249 mForceTextureCapture = forceTextureCapture;
1250 return false; 1250 return false;
1251 } 1251 }
1252 1252
1253 @Override 1253 @Override
1254 public void setLayoutUpdateHost(LayoutUpdateHost layoutUpdateHost) { 1254 public void setLayoutUpdateHost(LayoutUpdateHost layoutUpdateHost) {
1255 mLayoutUpdateHost = layoutUpdateHost; 1255 mLayoutUpdateHost = layoutUpdateHost;
1256 } 1256 }
1257 1257
1258 @Override 1258 @Override
1259 protected void onNavigatedToDifferentPage() {
1260 super.onNavigatedToDifferentPage();
1261 if (FeatureUtilities.isDocumentMode(getContext())) {
1262 mUrlContainer.setTrailingTextVisible(true);
1263 }
1264 }
1265
1266 @Override
1267 public void finishLoadProgress(boolean delayed) {
1268 super.finishLoadProgress(delayed);
1269 if (FeatureUtilities.isDocumentMode(getContext())) {
1270 mUrlContainer.setTrailingTextVisible(false);
1271 }
1272 }
1273
1274 @Override
1275 public void finishAnimations() { 1259 public void finishAnimations() {
1276 mClipRect = null; 1260 mClipRect = null;
1277 if (mTabSwitcherModeAnimation != null) { 1261 if (mTabSwitcherModeAnimation != null) {
1278 mTabSwitcherModeAnimation.end(); 1262 mTabSwitcherModeAnimation.end();
1279 mTabSwitcherModeAnimation = null; 1263 mTabSwitcherModeAnimation = null;
1280 } 1264 }
1281 if (mDelayedTabSwitcherModeAnimation != null) { 1265 if (mDelayedTabSwitcherModeAnimation != null) {
1282 mDelayedTabSwitcherModeAnimation.end(); 1266 mDelayedTabSwitcherModeAnimation.end();
1283 mDelayedTabSwitcherModeAnimation = null; 1267 mDelayedTabSwitcherModeAnimation = null;
1284 } 1268 }
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
2161 } 2145 }
2162 2146
2163 private void setUseLightDrawablesForTextureCapture() { 2147 private void setUseLightDrawablesForTextureCapture() {
2164 int currentPrimaryColor = getToolbarDataProvider().getPrimaryColor(); 2148 int currentPrimaryColor = getToolbarDataProvider().getPrimaryColor();
2165 mUseLightDrawablesForTextureCapture = isIncognito() 2149 mUseLightDrawablesForTextureCapture = isIncognito()
2166 || (currentPrimaryColor != 0 2150 || (currentPrimaryColor != 0
2167 && ColorUtils.shoudUseLightForegroundOnBackground(currentPrimary Color)); 2151 && ColorUtils.shoudUseLightForegroundOnBackground(currentPrimary Color));
2168 } 2152 }
2169 } 2153 }
2170 2154
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698