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

Unified Diff: ppapi/api/ppb_image_capture_config.idl

Issue 391323002: Pepper: add Image Capture interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add PP_ImageCaptureConfig and PP_ImageCaptureCapabilities Created 6 years, 5 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/api/ppb_image_capture_config.idl
diff --git a/ppapi/api/ppb_image_capture_config.idl b/ppapi/api/ppb_image_capture_config.idl
new file mode 100644
index 0000000000000000000000000000000000000000..985f752db396fce09f61acae567f04a649a70bef
--- /dev/null
+++ b/ppapi/api/ppb_image_capture_config.idl
@@ -0,0 +1,64 @@
+/* Copyright (c) 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.
+ */
+
+/**
+ * This file defines the PPB_ImageCaptureConfig interface for establishing an
+ * image capture configuration resource within the browser.
+ */
+
+[generate_thunk]
+
+label Chrome {
+ [channel=dev] M39 = 0.1
+};
+
+/**
+ * The <code>PPB_ImageCaptureConfig</code> interface contains pointers to
+ * several functions for establishing your image capture configuration within
+ * the browser. The new configuration will take effect after
+ * <code>PPB_ImageCapture.SetConfig</code> is called.
+ */
+[version=0.1]
+interface PPB_ImageCaptureConfig {
+ /**
+ * IsImageCaptureConfig() determines if the given resource is a
+ * <code>PPB_ImageCaptureConfig</code>.
+ *
+ * @param[in] resource A <code>PP_Resource</code> corresponding to an image
+ * capture config resource.
+ *
+ * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the given
+ * resource is an <code>ImageCaptureConfig</code> resource, otherwise
+ * <code>PP_FALSE</code>.
+ */
+ PP_Bool IsImageCaptureConfig(
+ [in] PP_Resource resource);
+
+ /**
+ * GetPhotoSize() returns the current photo size in pixels for the given
+ * <code>PPB_ImageCaptureConfig</code>.
+ *
+ * @param[in] config A <code>PP_Resource</code> corresponding to an image
+ * capture config resource.
+ *
+ * @return A <code>PP_Size</code> containing the current photo size of the
+ * configuration.
+ */
+ PP_Size GetPhotoSize(
+ [in] PP_Resource config);
+
+ /**
+ * SetPhotoSize() sets the photo size for the given
+ * <code>PPB_ImageCaptureConfig</code>.
+ *
+ * @param[in] config A <code>PP_Resource</code> corresponding to a
+ * <code>PPB_ImageCaptureConfig</code>.
+ * @param[in] photo_size A <code>PP_Size</code> that indicates the requested
+ * photo size.
+ */
+ void SetPhotoSize(
+ [in] PP_Resource config,
+ [in] PP_Size photo_size);
+};
« ppapi/api/ppb_image_capture_capabilities.idl ('K') | « ppapi/api/ppb_image_capture_capabilities.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698