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

Side by Side 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, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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.content_public.browser; 5 package org.chromium.content_public.browser;
6 6
7 import org.chromium.base.VisibleForTesting; 7 import org.chromium.base.VisibleForTesting;
8 8
9 /** 9 /**
10 * The WebContents Java wrapper to allow communicating with the native WebConten ts object. 10 * The WebContents Java wrapper to allow communicating with the native WebConten ts object.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 224
225 /** 225 /**
226 * Returns whether the initial empty page has been accessed by a script from another 226 * Returns whether the initial empty page has been accessed by a script from another
227 * page. Always false after the first commit. 227 * page. Always false after the first commit.
228 * 228 *
229 * @return Whether the initial empty page has been accessed by a script. 229 * @return Whether the initial empty page has been accessed by a script.
230 */ 230 */
231 public boolean hasAccessedInitialDocument(); 231 public boolean hasAccessedInitialDocument();
232 232
233 /** 233 /**
234 * This returns the theme color as set by the theme-color meta tag after get ting rid of the
235 * alpha.
236 * @param The default color to be returned if the cached color is not valid.
237 * @return The theme color for the content as set by the theme-color meta ta g.
238 */
239 public int getThemeColor(int defaultColor);
240
241 /**
234 * Add an observer to the WebContents 242 * Add an observer to the WebContents
235 * 243 *
236 * @param observer The observer to add. 244 * @param observer The observer to add.
237 */ 245 */
238 void addObserver(WebContentsObserver observer); 246 void addObserver(WebContentsObserver observer);
239 247
240 /** 248 /**
241 * Remove an observer from the WebContents 249 * Remove an observer from the WebContents
242 * 250 *
243 * @param observer The observer to remove. 251 * @param observer The observer to remove.
244 */ 252 */
245 void removeObserver(WebContentsObserver observer); 253 void removeObserver(WebContentsObserver observer);
246 } 254 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698