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

Unified Diff: content/public/browser/media_session.h

Issue 2550593003: Expose media controls to accessibility (Closed)
Patch Set: Expose ducking controls to accessibility Created 4 years 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
« no previous file with comments | « content/browser/media/session/media_session_impl.h ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/media_session.h
diff --git a/content/public/browser/media_session.h b/content/public/browser/media_session.h
index 78a18898d4c8b414e6416a277d490781c9bf5057..509629f894ad72b8111d6e5a418046463e6d8c5b 100644
--- a/content/public/browser/media_session.h
+++ b/content/public/browser/media_session.h
@@ -55,6 +55,14 @@ class MediaSession {
// Tell the media session a user action has performed.
virtual void DidReceiveAction(blink::mojom::MediaSessionAction action) = 0;
+ // Let the media session start ducking such that the volume multiplier is
+ // reduced.
+ virtual void StartDucking() = 0;
+
+ // Let the media session stop ducking such that the volume multiplier is
+ // recovered.
+ virtual void StopDucking() = 0;
+
protected:
MediaSession() = default;
};
« no previous file with comments | « content/browser/media/session/media_session_impl.h ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698