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); |
+}; |