Chromium Code Reviews| 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 /** | 7 /** |
| 8 * The WebContents Java wrapper to allow communicating with the native WebConten ts object. | 8 * The WebContents Java wrapper to allow communicating with the native WebConten ts object. |
| 9 */ | 9 */ |
| 10 public interface WebContents { | 10 public interface WebContents { |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 * Inserts the provided markup sandboxed into the frame. | 139 * Inserts the provided markup sandboxed into the frame. |
| 140 */ | 140 */ |
| 141 public void setupTransitionView(String markup); | 141 public void setupTransitionView(String markup); |
| 142 | 142 |
| 143 /** | 143 /** |
| 144 * Hides transition elements specified by the selector, and activates any | 144 * Hides transition elements specified by the selector, and activates any |
| 145 * exiting-transition stylesheets. | 145 * exiting-transition stylesheets. |
| 146 */ | 146 */ |
| 147 public void beginExitTransition(String cssSelector); | 147 public void beginExitTransition(String cssSelector); |
| 148 | 148 |
| 149 /** | |
| 150 * Injects the passed Javascript code in the current page and evaluates it. | |
| 151 * If a result is required, pass in a callback. | |
| 152 * Used in automation tests. | |
|
Yaron
2014/08/13 20:49:25
Can you remove this line? I think it's historical:
AKVT
2014/08/14 05:31:45
Done.
| |
| 153 * | |
| 154 * @param script The Javascript to execute. | |
| 155 * @param callback The callback to be fired off when a result is ready. The script's | |
| 156 * result will be json encoded and passed as the parameter, and the call | |
| 157 * will be made on the main thread. | |
| 158 * If no result is required, pass null. | |
| 159 * @param startRenderer Tells whether to start Renderer or not for initial e mpty document | |
| 160 */ | |
| 161 public void evaluateJavaScript(String script, JavaScriptCallback callback, | |
| 162 boolean startRenderer); | |
| 163 | |
| 149 } | 164 } |
| OLD | NEW |