Chromium Code Reviews| Index: ash/media_delegate.h |
| diff --git a/ash/media_delegate.h b/ash/media_delegate.h |
| index 1dac0592548b8918c6f3ea9be96d7a2a18caa038..6010d4f465db94b6766d34e9f516b3f2d9b92f1b 100644 |
| --- a/ash/media_delegate.h |
| +++ b/ash/media_delegate.h |
| @@ -5,8 +5,19 @@ |
| #ifndef ASH_MEDIA_DELEGATE_H_ |
| #define ASH_MEDIA_DELEGATE_H_ |
| +namespace content { |
| +class BrowserContext; |
| +} |
| + |
| namespace ash { |
| +enum MediaCaptureState { |
| + MEDIA_CAPTURE_NONE = 0, |
| + MEDIA_CAPTURE_AUDIO = 1 << 0, |
| + MEDIA_CAPTURE_VIDEO = 1 << 1, |
| + MEDIA_CAPTURE_AUDIO_VIDEO = MEDIA_CAPTURE_AUDIO | MEDIA_CAPTURE_VIDEO, |
|
Mr4D (OOO till 08-26)
2014/04/30 18:24:36
I thought we also show tab/screen sharing? If so -
oshima
2014/04/30 20:40:31
see my comment in grd.
|
| +}; |
| + |
| // A delegate class to control media playback. |
| class MediaDelegate { |
| public: |
| @@ -20,6 +31,12 @@ class MediaDelegate { |
| // Handles the Previous Track Media shortcut key. |
| virtual void HandleMediaPrevTrack() = 0; |
| + |
| + // Returns the current media recording state of web contents |
| + // that belongs to the |context| and are not on the current active |
| + // user's desktop. |
| + virtual MediaCaptureState GetBackgroundMediaCaptureState( |
| + content::BrowserContext* context) = 0; |
| }; |
| } // namespace ash |