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

Unified Diff: ppapi/thunk/ppb_image_capture_api.h

Issue 848863002: PPAPI: implement GetSupportedPreviewSizes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split API design changes to 887403003 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/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..e2a0f41c4a4e0ef36202f665f9511a0e74918b82
--- /dev/null
+++ b/ppapi/thunk/ppb_image_capture_api.h
@@ -0,0 +1,42 @@
+// 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;
wuchengli 2015/02/02 14:50:08 Forgot to remove.
Justin Chuang 2015/02/03 12:32:09 Done.
+ 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;
+};
+
+} // namespace thunk
+} // namespace ppapi
+
+#endif // PPAPI_THUNK_PPB_IMAGE_CAPTURE_API_H_

Powered by Google App Engine
This is Rietveld 408576698