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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
299 int getThemeColor(); | 299 int getThemeColor(); |
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 void addMediaSessionDelegate(MediaSessionDelegate delegate); |
boliu
2016/10/19 20:39:40
nit: s/add/set/ ?
Zhiqiang Zhang (Slow)
2016/10/20 16:22:32
Not really, we allow adding multiple MediaSessionD
boliu
2016/10/20 16:28:33
Usually you can have only one "delegate", but mult
Zhiqiang Zhang (Slow)
2016/10/20 17:07:03
Actually "delegate" inherits from "observer", a de
boliu
2016/10/20 17:10:19
Feels like that fact should live in the embedder n
| |
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 | 310 |
324 /** | 311 /** |
325 * Add an observer to the WebContents | 312 * Add an observer to the WebContents |
326 * | 313 * |
327 * @param observer The observer to add. | 314 * @param observer The observer to add. |
328 */ | 315 */ |
329 void addObserver(WebContentsObserver observer); | 316 void addObserver(WebContentsObserver observer); |
330 | 317 |
331 /** | 318 /** |
332 * Remove an observer from the WebContents | 319 * Remove an observer from the WebContents |
(...skipping 28 matching lines...) Expand all Loading... | |
361 * 0 means unlimited. | 348 * 0 means unlimited. |
362 * @param bypassCache If true, {@link url} is requested from the server even if it is present in | 349 * @param bypassCache If true, {@link url} is requested from the server even if it is present in |
363 * the browser cache. | 350 * the browser cache. |
364 * @param callback The callback which will be called when the bitmaps are re ceived from the | 351 * @param callback The callback which will be called when the bitmaps are re ceived from the |
365 * renderer. | 352 * renderer. |
366 * @return The unique id of the download request | 353 * @return The unique id of the download request |
367 */ | 354 */ |
368 public int downloadImage(String url, boolean isFavicon, int maxBitmapSize, | 355 public int downloadImage(String url, boolean isFavicon, int maxBitmapSize, |
369 boolean bypassCache, ImageDownloadCallback callback); | 356 boolean bypassCache, ImageDownloadCallback callback); |
370 } | 357 } |
OLD | NEW |