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

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 tests and Min's nits Created 5 years, 6 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 b2eaf32ca3591147d42a067bc6722d402f00fb66..7cf3ac7d32bc068e25bd6099e5a6d3a85b5a6985 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -48,6 +48,7 @@ namespace content {
class BrowserContext;
class BrowserPluginGuestDelegate;
class InterstitialPage;
+class MediaControlsDelegate;
class PageState;
class RenderFrameHost;
class RenderProcessHost;
@@ -658,6 +659,10 @@ class WebContents : public PageNavigator,
CONTENT_EXPORT static WebContents* FromJavaWebContents(
jobject jweb_contents_android);
virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0;
+
+ // Returns the delegate for the media controls (e.g. lock screen or
+ // notification).
+ virtual MediaControlsDelegate* GetMediaControlsDelegate() = 0;
#elif defined(OS_MACOSX)
// Allowing other views disables optimizations which assume that only a single
// WebContents is present.

Powered by Google App Engine
This is Rietveld 408576698