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

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: Updated the paddings for the notification layout according to the UX feedback 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..a4e173fb86e7b0fbba0d86f0735576ae9bda9cbf 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;
@@ -661,6 +661,13 @@ class WebContents : public PageNavigator,
virtual void ResumeLoadingCreatedWebContents() = 0;
#if defined(OS_ANDROID)
+ // Called when MediaSession changes any of its state.
+ virtual void OnMediaSessionStateChanged() = 0;
jochen (gone - plz use gerrit) 2015/07/08 15:35:57 this shouldn't be on the API
+ // Requests to resume the current media session.
+ virtual void ResumeMediaSession() = 0;
+ // Requests to suspend the current media session.
+ virtual void SuspendMediaSession() = 0;
+
CONTENT_EXPORT static WebContents* FromJavaWebContents(
jobject jweb_contents_android);
virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0;

Powered by Google App Engine
This is Rietveld 408576698