| Index: chrome/android/java/src/org/chromium/chrome/browser/omnibox/UrlContainer.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/UrlContainer.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/UrlContainer.java
|
| index 4ca4626b2ddc14d410b7c49c9ac7586adaf184f2..972c5c5ab4cea7c924031dd314eda42fc79a8e3a 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/UrlContainer.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/UrlContainer.java
|
| @@ -20,6 +20,7 @@ import android.view.ViewGroup;
|
| import android.widget.TextView;
|
|
|
| import org.chromium.base.ApiCompatibilityUtils;
|
| +import org.chromium.base.VisibleForTesting;
|
| import org.chromium.chrome.R;
|
| import org.chromium.chrome.browser.util.MathUtils;
|
| import org.chromium.ui.interpolators.BakedBezierInterpolator;
|
| @@ -172,6 +173,15 @@ public class UrlContainer extends ViewGroup {
|
| }
|
|
|
| /**
|
| + * Return the complete text shown in the URL container. Even if the trailing text has faded
|
| + * away, this will be included in the returned string.
|
| + */
|
| + @VisibleForTesting
|
| + public String getText() {
|
| + return mUrlBarView.getText().toString() + mTrailingTextView.getText().toString();
|
| + }
|
| +
|
| + /**
|
| * Specifies whether the trailing URL text should use dark text colors or light colors.
|
| * @param useDarkColors Whether the text colors should be dark (i.e. appropriate for use
|
| * on a light background).
|
|
|