| Index: ppapi/proxy/image_capture_config_resource.h
|
| diff --git a/ppapi/proxy/image_capture_config_resource.h b/ppapi/proxy/image_capture_config_resource.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7253f0370eab7491595c6435b617c71b8e8f9467
|
| --- /dev/null
|
| +++ b/ppapi/proxy/image_capture_config_resource.h
|
| @@ -0,0 +1,45 @@
|
| +// 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_PROXY_IMAGE_CAPTURE_CONFIG_RESOURCE_H_
|
| +#define PPAPI_PROXY_IMAGE_CAPTURE_CONFIG_RESOURCE_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "ppapi/proxy/ppapi_proxy_export.h"
|
| +#include "ppapi/shared_impl/resource.h"
|
| +#include "ppapi/thunk/ppb_image_capture_config_api.h"
|
| +
|
| +namespace ppapi {
|
| +namespace proxy {
|
| +
|
| +class PPAPI_PROXY_EXPORT ImageCaptureConfigResource
|
| + : public Resource,
|
| + public thunk::PPB_ImageCaptureConfig_API {
|
| + public:
|
| + ImageCaptureConfigResource(PP_Instance instance);
|
| +
|
| + virtual ~ImageCaptureConfigResource();
|
| +
|
| + // Resource overrides:
|
| + virtual thunk::PPB_ImageCaptureConfig_API* AsPPB_ImageCaptureConfig_API()
|
| + override;
|
| +
|
| + // PPB_ImageCaptureConfig_API overrides:
|
| + virtual void GetPreviewSize(PP_Size* preview_size) override;
|
| + virtual void SetPreviewSize(const PP_Size* preview_size) override;
|
| + virtual void GetJpegSize(PP_Size* jpeg_size) override;
|
| + virtual void SetJpegSize(const PP_Size* jpeg_size) override;
|
| +
|
| + private:
|
| + PP_Size preview_size_;
|
| +
|
| + PP_Size jpeg_size_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ImageCaptureConfigResource);
|
| +};
|
| +
|
| +} // namespace proxy
|
| +} // namespace ppapi
|
| +
|
| +#endif // PPAPI_PROXY_IMAGE_CAPTURE_CONFIG_RESOURCE_H_
|
|
|