Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: ppapi/thunk/ppb_video_capture_api.h

Issue 9234064: Implement device enumeration for PPB_VideoCapture_Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/thunk/interfaces_ppb_public_dev.h ('k') | ppapi/thunk/ppb_video_capture_thunk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 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>
9 #include <vector>
10
8 #include "ppapi/c/dev/ppb_video_capture_dev.h" 11 #include "ppapi/c/dev/ppb_video_capture_dev.h"
9 12
10 namespace ppapi { 13 namespace ppapi {
14
15 struct DeviceRefData;
16
11 namespace thunk { 17 namespace thunk {
12 18
13 class PPB_VideoCapture_API { 19 class PPB_VideoCapture_API {
14 public: 20 public:
15 virtual ~PPB_VideoCapture_API() {} 21 virtual ~PPB_VideoCapture_API() {}
16 22
17 virtual int32_t StartCapture( 23 virtual int32_t EnumerateDevices(PP_Resource* devices,
24 PP_CompletionCallback callback) = 0;
25 virtual int32_t Open(const std::string& device_id,
26 const PP_VideoCaptureDeviceInfo_Dev& requested_info,
27 uint32_t buffer_count,
28 PP_CompletionCallback callback) = 0;
29 virtual int32_t StartCapture() = 0;
30 virtual int32_t ReuseBuffer(uint32_t buffer) = 0;
31 virtual int32_t StopCapture() = 0;
32 virtual void Close() = 0;
33
34 // For backward compatibility.
35 virtual int32_t StartCapture0_1(
18 const PP_VideoCaptureDeviceInfo_Dev& requested_info, 36 const PP_VideoCaptureDeviceInfo_Dev& requested_info,
19 uint32_t buffer_count) = 0; 37 uint32_t buffer_count) = 0;
20 virtual int32_t ReuseBuffer(uint32_t buffer) = 0; 38
21 virtual int32_t StopCapture() = 0; 39 // This function is not exposed through the C API, but returns the internal
40 // data for easy proxying.
41 virtual const std::vector<DeviceRefData>& GetDeviceRefData() const = 0;
22 }; 42 };
23 43
24 } // namespace thunk 44 } // namespace thunk
25 } // namespace ppapi 45 } // namespace ppapi
26 46
27 #endif // PPAPI_THUNK_VIDEO_CAPTURE_API_H_ 47 #endif // PPAPI_THUNK_VIDEO_CAPTURE_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/interfaces_ppb_public_dev.h ('k') | ppapi/thunk/ppb_video_capture_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698