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 android.graphics.Bitmap; | 7 import android.graphics.Bitmap; |
8 import android.graphics.Rect; | 8 import android.graphics.Rect; |
9 import android.os.Handler; | 9 import android.os.Handler; |
10 import android.os.Parcelable; | 10 import android.os.Parcelable; |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 /** | 263 /** |
264 * Adds a log message to dev tools console. |level| must be a value of | 264 * Adds a log message to dev tools console. |level| must be a value of |
265 * org.chromium.content_public.common.ConsoleMessageLevel. | 265 * org.chromium.content_public.common.ConsoleMessageLevel. |
266 */ | 266 */ |
267 void addMessageToDevToolsConsole(int level, String message); | 267 void addMessageToDevToolsConsole(int level, String message); |
268 | 268 |
269 /** | 269 /** |
270 * Dispatches a Message event to the specified frame. | 270 * Dispatches a Message event to the specified frame. |
271 */ | 271 */ |
272 void postMessageToFrame(String frameName, String message, | 272 void postMessageToFrame(String frameName, String message, |
273 String sourceOrigin, String targetOrigin, int[] sentPortIds); | 273 String sourceOrigin, String targetOrigin, MessagePort[] ports); |
274 | 274 |
275 /** | 275 /** |
276 * Creates a message channel for sending postMessage requests and returns th
e ports for | 276 * Creates a message channel for sending postMessage requests and returns th
e ports for |
277 * each end of the channel. | 277 * each end of the channel. |
278 * @param service The message port service to register the channel with. | 278 * @param service The message port service to register the channel with. |
279 * @return The ports that forms the ends of the message channel created. | 279 * @return The ports that forms the ends of the message channel created. |
280 */ | 280 */ |
281 MessagePort[] createMessageChannel(MessagePortService service); | 281 MessagePort[] createMessageChannel(); |
282 | 282 |
283 /** | 283 /** |
284 * Returns whether the initial empty page has been accessed by a script from
another | 284 * Returns whether the initial empty page has been accessed by a script from
another |
285 * page. Always false after the first commit. | 285 * page. Always false after the first commit. |
286 * | 286 * |
287 * @return Whether the initial empty page has been accessed by a script. | 287 * @return Whether the initial empty page has been accessed by a script. |
288 */ | 288 */ |
289 boolean hasAccessedInitialDocument(); | 289 boolean hasAccessedInitialDocument(); |
290 | 290 |
291 /** | 291 /** |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 boolean bypassCache, ImageDownloadCallback callback); | 366 boolean bypassCache, ImageDownloadCallback callback); |
367 | 367 |
368 /** | 368 /** |
369 * Issues a fake notification about the renderer being killed. | 369 * Issues a fake notification about the renderer being killed. |
370 * | 370 * |
371 * @param wasOomProtected True if the renderer was protected from the OS out
-of-memory killer | 371 * @param wasOomProtected True if the renderer was protected from the OS out
-of-memory killer |
372 * (e.g. renderer for the currently selected tab) | 372 * (e.g. renderer for the currently selected tab) |
373 */ | 373 */ |
374 public void simulateRendererKilledForTesting(boolean wasOomProtected); | 374 public void simulateRendererKilledForTesting(boolean wasOomProtected); |
375 } | 375 } |
OLD | NEW |