Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: ppapi/proxy/image_capture_config_resource.h

Issue 848863002: PPAPI: implement GetSupportedPreviewSizes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove video_capture_types.* Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
dmichael (off chromium) 2015/01/28 00:00:36 nit: explicit
Justin Chuang 2015/02/02 08:43:44 Done. Thanks
+
+ 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_

Powered by Google App Engine
This is Rietveld 408576698