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

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

Issue 975293004: Start caching the theme color in web_contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made the default transparent and started caching last sent Created 5 years, 10 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
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 06bf7ae9cfec15885409f261e4f71675d6f01a9c..06c2517009165f2225824b65c5bd4ba28ac7d231 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
@@ -231,6 +231,14 @@ public interface WebContents {
public boolean hasAccessedInitialDocument();
/**
+ * This returns the theme color as set by the theme-color meta tag after getting rid of the
+ * alpha.
+ * @param The default color to be returned if the cached color is not valid.
+ * @return The theme color for the content as set by the theme-color meta tag.
+ */
+ public int getThemeColor(int defaultColor);
+
+ /**
* Add an observer to the WebContents
*
* @param observer The observer to add.

Powered by Google App Engine
This is Rietveld 408576698