Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(678)

Side by Side Diff: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java

Issue 2439483003: Link MediaSessionTabHelper with native MediaSession [CL is going to be split] (Closed)
Patch Set: Don't review, this CL is getting huge and needs to be split Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698