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

Unified Diff: content/public/browser/web_contents.h

Issue 1159113006: [Android] A prototype of the interactive media notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Min's nits 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index ab0fe6df66aa4ccdd768fadbc80f9ab85b6bcb0a..d38b61aab3c326227544d2d01690608848b329c7 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -561,7 +561,7 @@ class WebContents : public PageNavigator,
virtual void ViewSource() = 0;
virtual void ViewFrameSource(const GURL& url,
- const PageState& page_state)= 0;
+ const PageState& page_state) = 0;
// Gets the minimum/maximum zoom percent.
virtual int GetMinimumZoomPercent() const = 0;
@@ -660,6 +660,13 @@ class WebContents : public PageNavigator,
// as soon as they are ready.
virtual void ResumeLoadingCreatedWebContents() = 0;
+ // Called when MediaSession changes any of its state.
+ virtual void OnMediaSessionStateChanged() = 0;
+ // Requests to resume the current media session.
+ virtual void ResumeMediaSession() = 0;
+ // Requests to suspend the current media session.
+ virtual void SuspendMediaSession() = 0;
+
#if defined(OS_ANDROID)
CONTENT_EXPORT static WebContents* FromJavaWebContents(
jobject jweb_contents_android);

Powered by Google App Engine
This is Rietveld 408576698