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

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java

Issue 2014433002: Fix theme colors not updating when navigating back/from the NTP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
index b5bf43d9fcdc1649ec0ea9f593078f203b4bf27c..01e5ba835d7076b65edb6552dfc168722542a335 100644
--- a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
+++ b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
@@ -285,12 +285,14 @@ public interface WebContents extends Parcelable {
boolean hasAccessedInitialDocument();
/**
- * This returns the theme color as set by the theme-color meta tag after getting rid of the
- * alpha.
- * @param defaultColor The default color to be returned if the cached color is not valid.
+ * This returns the theme color as set by the theme-color meta tag.
+ * <p>
+ * The color returned may retain non-fully opaque alpha components. A value of
+ * {@link android.graphics.Color#TRANSPARENT} means there was no theme color specified.
+ *
* @return The theme color for the content as set by the theme-color meta tag.
*/
- int getThemeColor(int defaultColor);
+ int getThemeColor();
/**
* Requests a snapshop of accessibility tree. The result is provided asynchronously
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698