OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef PPAPI_THUNK_PPB_IMAGE_CAPTURE_API_H_ | |
6 #define PPAPI_THUNK_PPB_IMAGE_CAPTURE_API_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "ppapi/c/private/ppb_image_capture_private.h" | |
11 | |
12 namespace ppapi { | |
13 | |
14 class TrackedCallback; | |
15 | |
16 namespace thunk { | |
17 | |
18 class PPB_ImageCapture_API { | |
19 public: | |
20 virtual ~PPB_ImageCapture_API() {} | |
21 virtual int32_t Open(PP_Var camera_source_id, | |
22 scoped_refptr<TrackedCallback> callback) = 0; | |
23 virtual void Close() = 0; | |
24 virtual int32_t SetConfig(PP_Resource config, | |
25 scoped_refptr<TrackedCallback> callback) = 0; | |
26 virtual int32_t GetConfig(PP_Resource* config, | |
27 scoped_refptr<TrackedCallback> callback) = 0; | |
28 virtual int32_t GetCameraCapabilities( | |
29 PP_Resource* capabilities, | |
30 scoped_refptr<TrackedCallback> callback) = 0; | |
31 virtual int32_t ReuseBuffers() = 0; | |
wuchengli
2015/02/02 14:50:08
Forgot to remove.
Justin Chuang
2015/02/03 12:32:09
Done.
| |
32 virtual int32_t CaptureStillImage( | |
33 PPB_ImageCapture_Private_ShutterCallback shutter_callback, | |
34 PPB_ImageCapture_Private_PreviewCallback preview_callback, | |
35 PPB_ImageCapture_Private_JpegCallback jpeg_callback, | |
36 int64_t* sequence_id) = 0; | |
37 }; | |
38 | |
39 } // namespace thunk | |
40 } // namespace ppapi | |
41 | |
42 #endif // PPAPI_THUNK_PPB_IMAGE_CAPTURE_API_H_ | |
OLD | NEW |