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

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

Issue 2442303002: Adding new media controls to MediaNotification (Closed)
Patch Set: 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..483c68697628bbe46de701f806cecd823327f7fc 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -416,6 +416,8 @@ class CONTENT_EXPORT WebContentsImpl
void ResumeMediaSession() override;
void SuspendMediaSession() override;
void StopMediaSession() override;
+ void DidReceiveMediaSessionAction(
+ blink::mojom::MediaSessionAction action) override;
void OnPasswordInputShownOnHttp() override;
void OnCreditCardInputShownOnHttp() override;
void SetIsOverlayContent(bool is_overlay_content) override;
@@ -437,6 +439,13 @@ class CONTENT_EXPORT WebContentsImpl
// 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);
// Implementation of PageNavigator.
WebContents* OpenURL(const OpenURLParams& params) override;

Powered by Google App Engine
This is Rietveld 408576698