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

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

Issue 1159113006: [Android] A prototype of the interactive media notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved OnMediaSessionStateChanged to WebContentsImpl Created 5 years, 5 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.os.Parcelable; 7 import android.os.Parcelable;
8 8
9 import org.chromium.base.VisibleForTesting; 9 import org.chromium.base.VisibleForTesting;
10 10
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 /** 243 /**
244 * Requests a snapshop of accessibility tree. The result is provided asynchr onously 244 * Requests a snapshop of accessibility tree. The result is provided asynchr onously
245 * using the callback 245 * using the callback
246 * @param callback The callback to be called when the snapshot is ready. The callback 246 * @param callback The callback to be called when the snapshot is ready. The callback
247 * cannot be null. 247 * cannot be null.
248 */ 248 */
249 void requestAccessibilitySnapshot(AccessibilitySnapshotCallback callback); 249 void requestAccessibilitySnapshot(AccessibilitySnapshotCallback callback);
250 250
251 /** 251 /**
252 * Resumes the current media session.
253 */
254 void resumeMediaSession();
255
256 /**
257 * Suspends the current media session.
258 */
259 void suspendMediaSession();
260
261 /**
252 * Add an observer to the WebContents 262 * Add an observer to the WebContents
253 * 263 *
254 * @param observer The observer to add. 264 * @param observer The observer to add.
255 */ 265 */
256 void addObserver(WebContentsObserver observer); 266 void addObserver(WebContentsObserver observer);
257 267
258 /** 268 /**
259 * Remove an observer from the WebContents 269 * Remove an observer from the WebContents
260 * 270 *
261 * @param observer The observer to remove. 271 * @param observer The observer to remove.
262 */ 272 */
263 void removeObserver(WebContentsObserver observer); 273 void removeObserver(WebContentsObserver observer);
264 } 274 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698