| Index: ppapi/proxy/image_capture_config_resource.cc
|
| diff --git a/ppapi/proxy/image_capture_config_resource.cc b/ppapi/proxy/image_capture_config_resource.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ec2cd7d95f1a6e25a636c3c4147f7afaf1b64e90
|
| --- /dev/null
|
| +++ b/ppapi/proxy/image_capture_config_resource.cc
|
| @@ -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.
|
| +
|
| +#include "ppapi/proxy/image_capture_config_resource.h"
|
| +
|
| +namespace ppapi {
|
| +namespace proxy {
|
| +
|
| +ImageCaptureConfigResource::ImageCaptureConfigResource(PP_Instance instance)
|
| + : Resource(OBJECT_IS_PROXY, instance) {
|
| + preview_size_.width = 0;
|
| + preview_size_.height = 0;
|
| + jpeg_size_.width = 0;
|
| + jpeg_size_.height = 0;
|
| +}
|
| +
|
| +ImageCaptureConfigResource::~ImageCaptureConfigResource() {
|
| +}
|
| +
|
| +thunk::PPB_ImageCaptureConfig_API*
|
| +ImageCaptureConfigResource::AsPPB_ImageCaptureConfig_API() {
|
| + return this;
|
| +}
|
| +
|
| +void ImageCaptureConfigResource::GetPreviewSize(PP_Size* preview_size) {
|
| + *preview_size = preview_size_;
|
| +}
|
| +
|
| +void ImageCaptureConfigResource::SetPreviewSize(const PP_Size* preview_size) {
|
| + preview_size_ = *preview_size;
|
| +}
|
| +
|
| +void ImageCaptureConfigResource::GetJpegSize(PP_Size* jpeg_size) {
|
| + *jpeg_size = jpeg_size_;
|
| +}
|
| +
|
| +void ImageCaptureConfigResource::SetJpegSize(const PP_Size* jpeg_size) {
|
| + jpeg_size_ = *jpeg_size;
|
| +}
|
| +
|
| +} // namespace proxy
|
| +} // namespace ppapi
|
|
|