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. | 310 * Add a {@link MediaSessionDelegate} to the native {@link MediaSession} of
this |
| 311 * {@link WebContents} object. |
| 312 * @param delegate The delegate to be added to the native {@link MediaSessio
n} |
311 */ | 313 */ |
312 void resumeMediaSession(); | 314 void addMediaSessionDelegate(MediaSessionDelegate delegate); |
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 | 315 |
324 /** | 316 /** |
325 * Add an observer to the WebContents | 317 * Add an observer to the WebContents |
326 * | 318 * |
327 * @param observer The observer to add. | 319 * @param observer The observer to add. |
328 */ | 320 */ |
329 void addObserver(WebContentsObserver observer); | 321 void addObserver(WebContentsObserver observer); |
330 | 322 |
331 /** | 323 /** |
332 * Remove an observer from the WebContents | 324 * Remove an observer from the WebContents |
(...skipping 28 matching lines...) Expand all Loading... |
361 * 0 means unlimited. | 353 * 0 means unlimited. |
362 * @param bypassCache If true, {@link url} is requested from the server even
if it is present in | 354 * @param bypassCache If true, {@link url} is requested from the server even
if it is present in |
363 * the browser cache. | 355 * the browser cache. |
364 * @param callback The callback which will be called when the bitmaps are re
ceived from the | 356 * @param callback The callback which will be called when the bitmaps are re
ceived from the |
365 * renderer. | 357 * renderer. |
366 * @return The unique id of the download request | 358 * @return The unique id of the download request |
367 */ | 359 */ |
368 public int downloadImage(String url, boolean isFavicon, int maxBitmapSize, | 360 public int downloadImage(String url, boolean isFavicon, int maxBitmapSize, |
369 boolean bypassCache, ImageDownloadCallback callback); | 361 boolean bypassCache, ImageDownloadCallback callback); |
370 } | 362 } |
OLD | NEW |