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

Unified Diff: content/browser/media/session/media_session_impl.h

Issue 2550593003: Expose media controls to accessibility (Closed)
Patch Set: 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
Index: content/browser/media/session/media_session_impl.h
diff --git a/content/browser/media/session/media_session_impl.h b/content/browser/media/session/media_session_impl.h
index 1f1a0fc85d172fd45655d48251e7ee86ac05bae3..bc253442f941d8732650554cde9b434aa373e57e 100644
--- a/content/browser/media/session/media_session_impl.h
+++ b/content/browser/media/session/media_session_impl.h
@@ -127,6 +127,14 @@ class MediaSessionImpl : public MediaSession,
// Received a media session action and forward to blink::MediaSession.
void DidReceiveAction(blink::mojom::MediaSessionAction action) override;
+ // Let the media session start ducking such that the volume multiplier is
+ // reduced.
+ CONTENT_EXPORT void StartDucking() override;
+
+ // Let the media session stop ducking such that the volume multiplier is
+ // recovered.
+ CONTENT_EXPORT void StopDucking() override;
+
// Called when an action is enabled in blink::MediaSession. This method will
// notify the observers that the action is enabled.
void OnMediaSessionEnabledAction(blink::mojom::MediaSessionAction action);
@@ -135,14 +143,6 @@ class MediaSessionImpl : public MediaSession,
// notify the observers that the action is disabled.
void OnMediaSessionDisabledAction(blink::mojom::MediaSessionAction action);
- // Let the media session start ducking such that the volume multiplier is
- // reduced.
- CONTENT_EXPORT void StartDucking();
-
- // Let the media session stop ducking such that the volume multiplier is
- // recovered.
- CONTENT_EXPORT void StopDucking();
-
// Returns if the session can be controlled by Resume() and Suspend calls
// above.
CONTENT_EXPORT bool IsControllable() const;

Powered by Google App Engine
This is Rietveld 408576698