| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 PPAPI_THUNK_VIDEO_CAPTURE_API_H_ | 5 #ifndef PPAPI_THUNK_VIDEO_CAPTURE_API_H_ |
| 6 #define PPAPI_THUNK_VIDEO_CAPTURE_API_H_ | 6 #define PPAPI_THUNK_VIDEO_CAPTURE_API_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 scoped_refptr<TrackedCallback> callback) = 0; | 26 scoped_refptr<TrackedCallback> callback) = 0; |
| 27 virtual int32_t Open(const std::string& device_id, | 27 virtual int32_t Open(const std::string& device_id, |
| 28 const PP_VideoCaptureDeviceInfo_Dev& requested_info, | 28 const PP_VideoCaptureDeviceInfo_Dev& requested_info, |
| 29 uint32_t buffer_count, | 29 uint32_t buffer_count, |
| 30 scoped_refptr<TrackedCallback> callback) = 0; | 30 scoped_refptr<TrackedCallback> callback) = 0; |
| 31 virtual int32_t StartCapture() = 0; | 31 virtual int32_t StartCapture() = 0; |
| 32 virtual int32_t ReuseBuffer(uint32_t buffer) = 0; | 32 virtual int32_t ReuseBuffer(uint32_t buffer) = 0; |
| 33 virtual int32_t StopCapture() = 0; | 33 virtual int32_t StopCapture() = 0; |
| 34 virtual void Close() = 0; | 34 virtual void Close() = 0; |
| 35 | 35 |
| 36 // For backward compatibility. | |
| 37 virtual int32_t StartCapture0_1( | |
| 38 const PP_VideoCaptureDeviceInfo_Dev& requested_info, | |
| 39 uint32_t buffer_count) = 0; | |
| 40 | |
| 41 // This function is not exposed through the C API, but returns the internal | 36 // This function is not exposed through the C API, but returns the internal |
| 42 // data for easy proxying. | 37 // data for easy proxying. |
| 43 virtual const std::vector<DeviceRefData>& GetDeviceRefData() const = 0; | 38 virtual const std::vector<DeviceRefData>& GetDeviceRefData() const = 0; |
| 44 }; | 39 }; |
| 45 | 40 |
| 46 } // namespace thunk | 41 } // namespace thunk |
| 47 } // namespace ppapi | 42 } // namespace ppapi |
| 48 | 43 |
| 49 #endif // PPAPI_THUNK_VIDEO_CAPTURE_API_H_ | 44 #endif // PPAPI_THUNK_VIDEO_CAPTURE_API_H_ |
| OLD | NEW |