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.Parcelable; | 9 import android.os.Parcelable; |
10 | 10 |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 /** | 262 /** |
263 * Adds a log message to dev tools console. |level| must be a value of | 263 * Adds a log message to dev tools console. |level| must be a value of |
264 * org.chromium.content_public.common.ConsoleMessageLevel. | 264 * org.chromium.content_public.common.ConsoleMessageLevel. |
265 */ | 265 */ |
266 void addMessageToDevToolsConsole(int level, String message); | 266 void addMessageToDevToolsConsole(int level, String message); |
267 | 267 |
268 /** | 268 /** |
269 * Dispatches a Message event to the specified frame. | 269 * Dispatches a Message event to the specified frame. |
270 */ | 270 */ |
271 void postMessageToFrame( | 271 void postMessageToFrame( |
272 String frameName, String message, String targetOrigin, int[] sentPor
tIds); | 272 String frameName, String message, String targetOrigin, MessagePort[]
ports); |
273 | 273 |
274 /** | 274 /** |
275 * Creates a message channel for sending postMessage requests and returns th
e ports for | 275 * Creates a message channel for sending postMessage requests and returns th
e ports for |
276 * each end of the channel. | 276 * each end of the channel. |
277 * @param service The message port service to register the channel with. | 277 * @param service The message port service to register the channel with. |
278 * @return The ports that forms the ends of the message channel created. | 278 * @return The ports that forms the ends of the message channel created. |
279 */ | 279 */ |
280 MessagePort[] createMessageChannel(MessagePortService service); | 280 MessagePort[] createMessageChannel(MessagePortService service); |
281 | 281 |
282 /** | 282 /** |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 * 0 means unlimited. | 346 * 0 means unlimited. |
347 * @param bypassCache If true, {@link url} is requested from the server even
if it is present in | 347 * @param bypassCache If true, {@link url} is requested from the server even
if it is present in |
348 * the browser cache. | 348 * the browser cache. |
349 * @param callback The callback which will be called when the bitmaps are re
ceived from the | 349 * @param callback The callback which will be called when the bitmaps are re
ceived from the |
350 * renderer. | 350 * renderer. |
351 * @return The unique id of the download request | 351 * @return The unique id of the download request |
352 */ | 352 */ |
353 public int downloadImage(String url, boolean isFavicon, int maxBitmapSize, | 353 public int downloadImage(String url, boolean isFavicon, int maxBitmapSize, |
354 boolean bypassCache, ImageDownloadCallback callback); | 354 boolean bypassCache, ImageDownloadCallback callback); |
355 } | 355 } |
OLD | NEW |