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

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

Issue 115343006: Pepper: Remove unused interface versions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits. Created 6 years, 11 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/ppb_audio_input_dev_thunk.cc ('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) 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
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "ppapi/c/dev/ppb_video_capture_dev.h" 12 #include "ppapi/c/dev/ppb_video_capture_dev.h"
13 #include "ppapi/c/pp_array_output.h" 13 #include "ppapi/c/pp_array_output.h"
14 #include "ppapi/c/pp_resource.h" 14 #include "ppapi/c/pp_resource.h"
15 15
16 namespace ppapi { 16 namespace ppapi {
17 17
18 class TrackedCallback; 18 class TrackedCallback;
19 19
20 namespace thunk { 20 namespace thunk {
21 21
22 class PPB_VideoCapture_API { 22 class PPB_VideoCapture_API {
23 public: 23 public:
24 virtual ~PPB_VideoCapture_API() {} 24 virtual ~PPB_VideoCapture_API() {}
25 25
26 virtual int32_t EnumerateDevices0_2(
27 PP_Resource* devices,
28 scoped_refptr<TrackedCallback> callback) = 0;
29 virtual int32_t EnumerateDevices(const PP_ArrayOutput& output, 26 virtual int32_t EnumerateDevices(const PP_ArrayOutput& output,
30 scoped_refptr<TrackedCallback> callback) = 0; 27 scoped_refptr<TrackedCallback> callback) = 0;
31 virtual int32_t MonitorDeviceChange(PP_MonitorDeviceChangeCallback callback, 28 virtual int32_t MonitorDeviceChange(PP_MonitorDeviceChangeCallback callback,
32 void* user_data) = 0; 29 void* user_data) = 0;
33 virtual int32_t Open(const std::string& device_id, 30 virtual int32_t Open(const std::string& device_id,
34 const PP_VideoCaptureDeviceInfo_Dev& requested_info, 31 const PP_VideoCaptureDeviceInfo_Dev& requested_info,
35 uint32_t buffer_count, 32 uint32_t buffer_count,
36 scoped_refptr<TrackedCallback> callback) = 0; 33 scoped_refptr<TrackedCallback> callback) = 0;
37 virtual int32_t StartCapture() = 0; 34 virtual int32_t StartCapture() = 0;
38 virtual int32_t ReuseBuffer(uint32_t buffer) = 0; 35 virtual int32_t ReuseBuffer(uint32_t buffer) = 0;
39 virtual int32_t StopCapture() = 0; 36 virtual int32_t StopCapture() = 0;
40 virtual void Close() = 0; 37 virtual void Close() = 0;
41 38
42 // This function is not exposed through the C API. It is only used by flash 39 // This function is not exposed through the C API. It is only used by flash
43 // to make synchronous device enumeration. 40 // to make synchronous device enumeration.
44 virtual int32_t EnumerateDevicesSync(const PP_ArrayOutput& devices) = 0; 41 virtual int32_t EnumerateDevicesSync(const PP_ArrayOutput& devices) = 0;
45 }; 42 };
46 43
47 } // namespace thunk 44 } // namespace thunk
48 } // namespace ppapi 45 } // namespace ppapi
49 46
50 #endif // PPAPI_THUNK_VIDEO_CAPTURE_API_H_ 47 #endif // PPAPI_THUNK_VIDEO_CAPTURE_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_audio_input_dev_thunk.cc ('k') | ppapi/thunk/ppb_video_capture_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698