diff options
author | mlamouri <mlamouri@chromium.org> | 2015-08-17 08:51:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-17 15:51:36 +0000 |
commit | 4c4fbedc4d4c613bcc456efe4e4a2477abe0e4d3 (patch) | |
tree | c98ec21a81fbaaf8f673cf5fffa0d07528b5eb7b /content/public/browser | |
parent | 58a2915b955ac366f988c0f3582fa8506698f900 (diff) | |
download | chromium_src-4c4fbedc4d4c613bcc456efe4e4a2477abe0e4d3.zip chromium_src-4c4fbedc4d4c613bcc456efe4e4a2477abe0e4d3.tar.gz chromium_src-4c4fbedc4d4c613bcc456efe4e4a2477abe0e4d3.tar.bz2 |
Android Media Notification: stop the MediaSession when dismissed.
The current behaviour is to simply dismiss the notification but the
WebContents and content::MediaSession will consider the session still
running while the user's intent was to actually stop it. As a result,
the WebContents will still receive notification about the session
changes, for example, when Chrome will lose/re-gain audio focus. These
notifications will re-introduce the Notification (in a paused state).
BUG=515129
Review URL: https://codereview.chromium.org/1294863002
Cr-Commit-Position: refs/heads/master@{#343688}
Diffstat (limited to 'content/public/browser')
-rw-r--r-- | content/public/browser/web_contents.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h index 4ed6a40..803b816 100644 --- a/content/public/browser/web_contents.h +++ b/content/public/browser/web_contents.h @@ -672,6 +672,8 @@ class WebContents : public PageNavigator, virtual void ResumeMediaSession() = 0; // Requests to suspend the current media session. virtual void SuspendMediaSession() = 0; + // Requests to stop the current media session. + virtual void StopMediaSession() = 0; CONTENT_EXPORT static WebContents* FromJavaWebContents( jobject jweb_contents_android); |