OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 MEDIA_CAPTURE_VIDEO_CAPTURER_SOURCE_H_ | 5 #ifndef MEDIA_CAPTURE_VIDEO_CAPTURER_SOURCE_H_ |
6 #define MEDIA_CAPTURE_VIDEO_CAPTURER_SOURCE_H_ | 6 #define MEDIA_CAPTURE_VIDEO_CAPTURER_SOURCE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // | 107 // |
108 // Note: This should only be called after StartCapture() and before | 108 // Note: This should only be called after StartCapture() and before |
109 // StopCapture(). Otherwise, its behavior is undefined. | 109 // StopCapture(). Otherwise, its behavior is undefined. |
110 virtual void Resume() {} | 110 virtual void Resume() {} |
111 | 111 |
112 // Stops capturing frames and clears all callbacks including the | 112 // Stops capturing frames and clears all callbacks including the |
113 // SupportedFormatsCallback callback. Note that queued frame callbacks | 113 // SupportedFormatsCallback callback. Note that queued frame callbacks |
114 // may still occur after this call, so the caller must take care to | 114 // may still occur after this call, so the caller must take care to |
115 // use refcounted or weak references in |new_frame_callback|. | 115 // use refcounted or weak references in |new_frame_callback|. |
116 virtual void StopCapture() = 0; | 116 virtual void StopCapture() = 0; |
| 117 |
| 118 virtual CameraFacing GetCameraFacing() const { return CameraFacing::DEFAULT; } |
117 }; | 119 }; |
118 | 120 |
119 } // namespace media | 121 } // namespace media |
120 | 122 |
121 #endif // MEDIA_CAPTURE_VIDEO_CAPTURER_SOURCE_H_ | 123 #endif // MEDIA_CAPTURE_VIDEO_CAPTURER_SOURCE_H_ |
OLD | NEW |