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

Unified Diff: content/public/browser/web_contents_delegate.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 a few missed 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_delegate.h
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index 34d39f779cd801cc983f6d449a9075a16d5746aa..b5657871428f0f6ba38b769410c7458de2b35a01 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -405,6 +405,14 @@ class CONTENT_EXPORT WebContentsDelegate {
int version,
const std::vector<gfx::RectF>& rects,
const gfx::RectF& active_rect) {}
+
+ // Requests the tab to show media controls to manipulate the active media
+ // session.
+ virtual void ShowMediaControls(WebContents* web_contents) {}
+
+ // Requests the tab to hide media controls as the media session became
+ // inactive.
+ virtual void HideMediaControls(WebContents* web_contents) {}
#endif
// Invoked when the preferred size of the contents has been changed.

Powered by Google App Engine
This is Rietveld 408576698