Index: ppapi/api/private/ppb_image_capture_config_private.idl |
diff --git a/ppapi/api/private/ppb_image_capture_config_private.idl b/ppapi/api/private/ppb_image_capture_config_private.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d4ea04702ff38382c1d28ab8585365d57fc99351 |
--- /dev/null |
+++ b/ppapi/api/private/ppb_image_capture_config_private.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 { |
+ M39 = 0.1 |
+}; |
+ |
+/** |
+ * The <code>PPB_ImageCaptureConfig</code> interface contains pointers to |
+ * several functions for establishing your image capture configuration within |
Pawel Osciak
2014/08/03 08:34:38
s/your//
wuchengli
2014/08/06 08:14:57
Done.
|
+ * the browser. The new configuration will take effect after |
+ * <code>PPB_ImageCapture.SetConfig</code> is called. |
Pawel Osciak
2014/08/03 08:34:38
s/PPB_ImageCapture/PPB_ImageCapture_Private/ ?
wuchengli
2014/08/06 08:14:57
Done.
|
+ */ |
+[version=0.1] |
+interface PPB_ImageCaptureConfig_Private { |
+ /** |
+ * 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); |
+ |
+ /** |
+ * GetJpegSize() returns the Jpeg 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 GetJpegSize( |
+ [in] PP_Resource config); |
+ |
+ /** |
+ * SetJpegSize() sets the Jpeg 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. |
+ */ |
Justin Chuang
2014/08/03 09:45:45
Can this method returns fail on wrong photo_size?
wuchengli
2014/08/06 08:14:57
No. This method only stores the size in this objec
|
+ void SetJpegSize( |
+ [in] PP_Resource config, |
+ [in] PP_Size photo_size); |
+}; |