| Index: chrome/android/java/src/org/chromium/chrome/browser/util/ColorUtils.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/util/ColorUtils.java b/chrome/android/java/src/org/chromium/chrome/browser/util/ColorUtils.java
|
| index 0057cea92b35677aa0a2ef24c68b857af2789a44..a07f3c91143b71a98865ebbbd479e4a5343ac1ab 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/util/ColorUtils.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/util/ColorUtils.java
|
| @@ -54,6 +54,14 @@ public class ColorUtils {
|
| }
|
|
|
| /**
|
| + * @return Alpha for the textbox given a toolbar background color.
|
| + */
|
| + public static float getTextBoxAlphaForToolbarBackground(int color) {
|
| + return shouldUseOpaqueTextboxBackground(color)
|
| + ? 1f : LOCATION_BAR_TRANSPARENT_BACKGROUND_ALPHA;
|
| + }
|
| +
|
| + /**
|
| * Gets the background color for light theme progress bar.
|
| * @param toolbarColor The color of the toolbar.
|
| * @return The color of the progress bar in light theme, given the toolbar color.
|
|
|