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

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: Address WuCheng's comments in Patch Set 9/10 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..754504d32b339bb7dfcf89f0915abdf44c4aade2
--- /dev/null
+++ b/ppapi/thunk/ppb_image_capture_api.h
@@ -0,0 +1,41 @@
+// 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 CaptureStillImage(
+ PPB_ImageCapture_Private_ShutterCallback shutter_callback,
+ PPB_ImageCapture_Private_PreviewCallback preview_callback,
+ PPB_ImageCapture_Private_JpegCallback jpeg_callback,
+ int64_t* sequence_id) = 0;
dmichael (off chromium) 2015/02/03 19:33:17 Hmm, it's tempting to say you should land the CL d
Justin Chuang 2015/02/04 17:44:24 Sure, I'm okay in either way. I can commit the oth
wuchengli 2015/02/05 03:32:54 http://crrev.com/884483007 was already approved. S
+};
+
+} // namespace thunk
+} // namespace ppapi
+
+#endif // PPAPI_THUNK_PPB_IMAGE_CAPTURE_API_H_

Powered by Google App Engine
This is Rietveld 408576698