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

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: Added browser tests 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 f191672c9d9c21b3a98b07dc9bbd5e967c8b3dec..abe97feb53b2f8dc3af2e9f2e703386ca6a6d08d 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -404,6 +404,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