| 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 * |
| 153 * @param script The Javascript to execute. |
| 154 * @param callback The callback to be fired off when a result is ready. The
script's |
| 155 * result will be json encoded and passed as the parameter,
and the call |
| 156 * will be made on the main thread. |
| 157 * If no result is required, pass null. |
| 158 * @param startRenderer Tells whether to start Renderer or not for initial e
mpty document |
| 159 */ |
| 160 public void evaluateJavaScript(String script, JavaScriptCallback callback, |
| 161 boolean startRenderer); |
| 162 |
| 149 } | 163 } |
| OLD | NEW |