| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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.scene_layer; | 5 package org.chromium.chrome.browser.compositor.scene_layer; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 import android.graphics.RectF; | 8 import android.graphics.RectF; |
| 9 | 9 |
| 10 import org.chromium.base.annotations.JNINamespace; | 10 import org.chromium.base.annotations.JNINamespace; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 // TODO(mdjones): Create a "theme provider" to handle cases like this. | 149 // TODO(mdjones): Create a "theme provider" to handle cases like this. |
| 150 int color = mRenderHost.getBrowserControlsBackgroundColor(); | 150 int color = mRenderHost.getBrowserControlsBackgroundColor(); |
| 151 float alpha = mRenderHost.getBrowserControlsUrlBarAlpha(); | 151 float alpha = mRenderHost.getBrowserControlsUrlBarAlpha(); |
| 152 ChromeFullscreenManager fullscreenManager = mLayoutProvider.getFullscree
nManager(); | 152 ChromeFullscreenManager fullscreenManager = mLayoutProvider.getFullscree
nManager(); |
| 153 if (fullscreenManager.areBrowserControlsAtBottom() && fullscreenManager.
getTab() != null) { | 153 if (fullscreenManager.areBrowserControlsAtBottom() && fullscreenManager.
getTab() != null) { |
| 154 color = fullscreenManager.getTab().getDefaultThemeColor(); | 154 color = fullscreenManager.getTab().getDefaultThemeColor(); |
| 155 if (!fullscreenManager.getTab().isIncognito()) alpha = 1f; | 155 if (!fullscreenManager.getTab().isIncognito()) alpha = 1f; |
| 156 } | 156 } |
| 157 | 157 |
| 158 update(color, alpha, mLayoutProvider.getFullscreenManager(), resourceMan
ager, | 158 update(color, alpha, mLayoutProvider.getFullscreenManager(), resourceMan
ager, |
| 159 forceHideBrowserControlsAndroidView, viewportMode, | 159 forceHideBrowserControlsAndroidView, viewportMode, DeviceFormFac
tor.isTablet(), |
| 160 DeviceFormFactor.isTablet(mContext), viewport.height()); | 160 viewport.height()); |
| 161 | 161 |
| 162 return this; | 162 return this; |
| 163 } | 163 } |
| 164 | 164 |
| 165 @Override | 165 @Override |
| 166 public boolean isSceneOverlayTreeShowing() { | 166 public boolean isSceneOverlayTreeShowing() { |
| 167 return true; | 167 return true; |
| 168 } | 168 } |
| 169 | 169 |
| 170 @Override | 170 @Override |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 int progressBarY, | 264 int progressBarY, |
| 265 int progressBarWidth, | 265 int progressBarWidth, |
| 266 int progressBarHeight, | 266 int progressBarHeight, |
| 267 int progressBarColor, | 267 int progressBarColor, |
| 268 int progressBarBackgroundX, | 268 int progressBarBackgroundX, |
| 269 int progressBarBackgroundY, | 269 int progressBarBackgroundY, |
| 270 int progressBarBackgroundWidth, | 270 int progressBarBackgroundWidth, |
| 271 int progressBarBackgroundHeight, | 271 int progressBarBackgroundHeight, |
| 272 int progressBarBackgroundColor); | 272 int progressBarBackgroundColor); |
| 273 } | 273 } |
| OLD | NEW |