| 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..e478f24423e91c946925489d2916c137bbf1ad6c
|
| --- /dev/null
|
| +++ b/ppapi/thunk/ppb_image_capture_api.h
|
| @@ -0,0 +1,43 @@
|
| +// 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 ReuseBuffers() = 0;
|
| + virtual int32_t CaptureStillImage(
|
| + PPB_ImageCapture_Private_ShutterCallback shutter_callback,
|
| + PPB_ImageCapture_Private_PreviewCallback preview_callback,
|
| + PPB_ImageCapture_Private_JpegCallback jpeg_callback,
|
| + PPB_ImageCapture_Private_ErrorCallback error_callback,
|
| + uint64_t* sequence_id) = 0;
|
| +};
|
| +
|
| +} // namespace thunk
|
| +} // namespace ppapi
|
| +
|
| +#endif // PPAPI_THUNK_PPB_IMAGE_CAPTURE_API_H_
|
|
|