Chromium Code Reviews| Index: ppapi/thunk/ppb_image_capture_api.h |
| diff --git a/ppapi/thunk/ppb_image_capture_api.h b/ppapi/thunk/ppb_image_capture_api.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..754504d32b339bb7dfcf89f0915abdf44c4aade2 |
| --- /dev/null |
| +++ b/ppapi/thunk/ppb_image_capture_api.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef PPAPI_THUNK_PPB_IMAGE_CAPTURE_API_H_ |
| +#define PPAPI_THUNK_PPB_IMAGE_CAPTURE_API_H_ |
| + |
| +#include <string> |
| + |
| +#include "ppapi/c/private/ppb_image_capture_private.h" |
| + |
| +namespace ppapi { |
| + |
| +class TrackedCallback; |
| + |
| +namespace thunk { |
| + |
| +class PPB_ImageCapture_API { |
| + public: |
| + virtual ~PPB_ImageCapture_API() {} |
| + virtual int32_t Open(PP_Var camera_source_id, |
| + scoped_refptr<TrackedCallback> callback) = 0; |
| + virtual void Close() = 0; |
| + virtual int32_t SetConfig(PP_Resource config, |
| + scoped_refptr<TrackedCallback> callback) = 0; |
| + virtual int32_t GetConfig(PP_Resource* config, |
| + scoped_refptr<TrackedCallback> callback) = 0; |
| + virtual int32_t GetCameraCapabilities( |
| + PP_Resource* capabilities, |
| + scoped_refptr<TrackedCallback> callback) = 0; |
| + virtual int32_t CaptureStillImage( |
| + PPB_ImageCapture_Private_ShutterCallback shutter_callback, |
| + PPB_ImageCapture_Private_PreviewCallback preview_callback, |
| + PPB_ImageCapture_Private_JpegCallback jpeg_callback, |
| + int64_t* sequence_id) = 0; |
|
dmichael (off chromium)
2015/02/03 19:33:17
Hmm, it's tempting to say you should land the CL d
Justin Chuang
2015/02/04 17:44:24
Sure, I'm okay in either way. I can commit the oth
wuchengli
2015/02/05 03:32:54
http://crrev.com/884483007 was already approved. S
|
| +}; |
| + |
| +} // namespace thunk |
| +} // namespace ppapi |
| + |
| +#endif // PPAPI_THUNK_PPB_IMAGE_CAPTURE_API_H_ |