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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 | 300 |
301 /** | 301 /** |
302 * Requests a snapshop of accessibility tree. The result is provided asynchr
onously | 302 * Requests a snapshop of accessibility tree. The result is provided asynchr
onously |
303 * using the callback | 303 * using the callback |
304 * @param callback The callback to be called when the snapshot is ready. The
callback | 304 * @param callback The callback to be called when the snapshot is ready. The
callback |
305 * cannot be null. | 305 * cannot be null. |
306 */ | 306 */ |
307 void requestAccessibilitySnapshot(AccessibilitySnapshotCallback callback); | 307 void requestAccessibilitySnapshot(AccessibilitySnapshotCallback callback); |
308 | 308 |
309 /** | 309 /** |
310 * Resumes the current media session. | |
311 */ | |
312 void resumeMediaSession(); | |
313 | |
314 /** | |
315 * Suspends the current media session. | |
316 */ | |
317 void suspendMediaSession(); | |
318 | |
319 /** | |
320 * Stops the current media session. | |
321 */ | |
322 void stopMediaSession(); | |
323 | |
324 /** | |
325 * Add an observer to the WebContents | 310 * Add an observer to the WebContents |
326 * | 311 * |
327 * @param observer The observer to add. | 312 * @param observer The observer to add. |
328 */ | 313 */ |
329 void addObserver(WebContentsObserver observer); | 314 void addObserver(WebContentsObserver observer); |
330 | 315 |
331 /** | 316 /** |
332 * Remove an observer from the WebContents | 317 * Remove an observer from the WebContents |
333 * | 318 * |
334 * @param observer The observer to remove. | 319 * @param observer The observer to remove. |
(...skipping 26 matching lines...) Expand all Loading... |
361 * 0 means unlimited. | 346 * 0 means unlimited. |
362 * @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 |
363 * the browser cache. | 348 * the browser cache. |
364 * @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 |
365 * renderer. | 350 * renderer. |
366 * @return The unique id of the download request | 351 * @return The unique id of the download request |
367 */ | 352 */ |
368 public int downloadImage(String url, boolean isFavicon, int maxBitmapSize, | 353 public int downloadImage(String url, boolean isFavicon, int maxBitmapSize, |
369 boolean bypassCache, ImageDownloadCallback callback); | 354 boolean bypassCache, ImageDownloadCallback callback); |
370 } | 355 } |
OLD | NEW |