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

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

Issue 2442303002: Adding new media controls to MediaNotification (Closed)
Patch Set: addressed boliu's comments Created 4 years, 2 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/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 2b04a84c62e30233fca4bd95a103410102f11282..6dbe3abb1d2586a2a7ec358a9aa74cc1b4f7a893 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -431,12 +431,25 @@ class CONTENT_EXPORT WebContentsImpl
bool GetAllowOtherViews() override;
#endif
+ // TODO(zqzhang): Decouple MediaSession messages from WebContents to avoid
+ // plumbing. See https://crbug.com/658678
+ //
// This method is called when the MediaSession state has changed, and will
// notify the WebContents observers.
void OnMediaSessionStateChanged();
// This method is called when the MediaSession metadata has changed, and will
// notify the WebContents observers.
void OnMediaSessionMetadataChanged();
+ // This method is called when the MediaSession has enabled an action, and will
+ // notify the WebContentsObservers.
+ void OnMediaSessionEnabledAction(blink::mojom::MediaSessionAction action);
+ // This method is called when the MediaSession has disabled an action, and
+ // will
+ // notify the WebContentsObservers.
+ void OnMediaSessionDisabledAction(blink::mojom::MediaSessionAction action);
+ // Tell the media session a user action has performed.
+ void DidReceiveMediaSessionAction(
+ blink::mojom::MediaSessionAction action);
// Implementation of PageNavigator.
WebContents* OpenURL(const OpenURLParams& params) override;

Powered by Google App Engine
This is Rietveld 408576698