| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 public void selectWordAroundCaret(); | 132 public void selectWordAroundCaret(); |
| 133 | 133 |
| 134 /** | 134 /** |
| 135 * Get the URL of the current page. | 135 * Get the URL of the current page. |
| 136 * | 136 * |
| 137 * @return The URL of the current page. | 137 * @return The URL of the current page. |
| 138 */ | 138 */ |
| 139 public String getUrl(); | 139 public String getUrl(); |
| 140 | 140 |
| 141 /** | 141 /** |
| 142 * Gets the last committed URL. It represents the current page that is |
| 143 * displayed in this WebContents. It represents the current security context
. |
| 144 * |
| 145 * @return The last committed URL. |
| 146 */ |
| 147 public String getLastCommittedUrl(); |
| 148 |
| 149 /** |
| 142 * Get the InCognito state of WebContents. | 150 * Get the InCognito state of WebContents. |
| 143 * | 151 * |
| 144 * @return whether this WebContents is in InCognito mode or not | 152 * @return whether this WebContents is in InCognito mode or not |
| 145 */ | 153 */ |
| 146 public boolean isIncognito(); | 154 public boolean isIncognito(); |
| 147 | 155 |
| 148 /** | 156 /** |
| 149 * Resumes the response which is deferred during start. | 157 * Resumes the response which is deferred during start. |
| 150 */ | 158 */ |
| 151 public void resumeResponseDeferredAtStart(); | 159 public void resumeResponseDeferredAtStart(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 * will be made on the main thread. | 214 * will be made on the main thread. |
| 207 * If no result is required, pass null. | 215 * If no result is required, pass null. |
| 208 */ | 216 */ |
| 209 public void evaluateJavaScript(String script, JavaScriptCallback callback); | 217 public void evaluateJavaScript(String script, JavaScriptCallback callback); |
| 210 | 218 |
| 211 /** | 219 /** |
| 212 * Adds a log message to dev tools console. |level| must be a value of | 220 * Adds a log message to dev tools console. |level| must be a value of |
| 213 * org.chromium.content_public.common.ConsoleMessageLevel. | 221 * org.chromium.content_public.common.ConsoleMessageLevel. |
| 214 */ | 222 */ |
| 215 public void addMessageToDevToolsConsole(int level, String message); | 223 public void addMessageToDevToolsConsole(int level, String message); |
| 224 |
| 225 /** |
| 226 * Returns whether the initial empty page has been accessed by a script from
another |
| 227 * page. Always false after the first commit. |
| 228 * |
| 229 * @return Whether the initial empty page has been accessed by a script. |
| 230 */ |
| 231 public boolean hasAccessedInitialDocument(); |
| 216 } | 232 } |
| OLD | NEW |