OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |