| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_MEDIA_DELEGATE_H_ | 5 #ifndef ASH_COMMON_MEDIA_DELEGATE_H_ |
| 6 #define ASH_MEDIA_DELEGATE_H_ | 6 #define ASH_COMMON_MEDIA_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ash/common/session/session_types.h" | 8 #include "ash/common/session/session_types.h" |
| 9 | 9 |
| 10 namespace content { | |
| 11 class BrowserContext; | |
| 12 } | |
| 13 | |
| 14 namespace ash { | 10 namespace ash { |
| 15 | 11 |
| 16 enum MediaCaptureState { | 12 enum MediaCaptureState { |
| 17 MEDIA_CAPTURE_NONE = 0, | 13 MEDIA_CAPTURE_NONE = 0, |
| 18 MEDIA_CAPTURE_AUDIO = 1 << 0, | 14 MEDIA_CAPTURE_AUDIO = 1 << 0, |
| 19 MEDIA_CAPTURE_VIDEO = 1 << 1, | 15 MEDIA_CAPTURE_VIDEO = 1 << 1, |
| 20 MEDIA_CAPTURE_AUDIO_VIDEO = MEDIA_CAPTURE_AUDIO | MEDIA_CAPTURE_VIDEO, | 16 MEDIA_CAPTURE_AUDIO_VIDEO = MEDIA_CAPTURE_AUDIO | MEDIA_CAPTURE_VIDEO, |
| 21 }; | 17 }; |
| 22 | 18 |
| 23 // A delegate class to control media playback. | 19 // A delegate class to control media playback. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 34 // Handles the Previous Track Media shortcut key. | 30 // Handles the Previous Track Media shortcut key. |
| 35 virtual void HandleMediaPrevTrack() = 0; | 31 virtual void HandleMediaPrevTrack() = 0; |
| 36 | 32 |
| 37 // Returns the current media recording state of web contents that belongs to | 33 // Returns the current media recording state of web contents that belongs to |
| 38 // the the user @ |index|. See session_types.h for a description of UserIndex. | 34 // the the user @ |index|. See session_types.h for a description of UserIndex. |
| 39 virtual MediaCaptureState GetMediaCaptureState(UserIndex index) = 0; | 35 virtual MediaCaptureState GetMediaCaptureState(UserIndex index) = 0; |
| 40 }; | 36 }; |
| 41 | 37 |
| 42 } // namespace ash | 38 } // namespace ash |
| 43 | 39 |
| 44 #endif // ASH_MEDIA_DELEGATE_H_ | 40 #endif // ASH_COMMON_MEDIA_DELEGATE_H_ |
| OLD | NEW |