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..e3788d949319c1de7646b0ee789533659475b8bb |
--- /dev/null |
+++ b/ppapi/api/private/ppb_image_capture_config_private.idl |
@@ -0,0 +1,90 @@ |
+/* 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_Private interface for |
+ * establishing an image capture configuration resource within the browser. |
+ */ |
+ |
+[generate_thunk] |
+ |
+label Chrome { |
+ M39 = 0.1 |
+}; |
+ |
+/** |
+ * The <code>PPB_ImageCaptureConfig_Private</code> interface contains pointers to |
Owen Lin
2014/08/07 07:45:04
line too long
wuchengli
2014/08/07 15:33:55
Done.
|
+ * several functions for establishing image capture configuration within the |
+ * browser. The new configuration will take effect after |
+ * <code>PPB_ImageCapture_Private.SetConfig</code> is called. |
+ */ |
+[version=0.1] |
+interface PPB_ImageCaptureConfig_Private { |
+ /** |
+ * IsImageCaptureConfig() determines if the given resource is a |
+ * <code>PPB_ImageCaptureConfig_Private</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_Private</code> resource, otherwise |
+ * <code>PP_FALSE</code>. |
+ */ |
+ PP_Bool IsImageCaptureConfig( |
+ [in] PP_Resource resource); |
+ |
+ /** |
+ * GetPreviewSize() returns the preview image size in pixels for the given |
+ * <code>PPB_ImageCaptureConfig_Private</code>. |
+ * |
+ * @param[in] config A <code>PP_Resource</code> corresponding to an image |
+ * capture config resource. |
+ * @param[out] preview_size A <code>PP_Size</code> that indicates the requested |
Owen Lin
2014/08/07 07:45:04
line too long.
wuchengli
2014/08/07 15:33:55
Done.
|
+ * preview image size. |
+ */ |
+ void GetPreviewSize( |
+ [in] PP_Resource config, |
+ [out] PP_Size preview_size); |
+ |
+ /** |
+ * SetPreviewSize() sets the preview image size for the given |
+ * <code>PPB_ImageCaptureConfig_Private</code>. |
+ * |
+ * @param[in] config A <code>PP_Resource</code> corresponding to a |
+ * <code>PPB_ImageCaptureConfig_Private</code>. |
+ * @param[in] preview_size A <code>PP_Size</code> that indicates the requested |
+ * preview image size. |
+ */ |
+ void SetPreviewSize( |
+ [in] PP_Resource config, |
+ [in] PP_Size preview_size); |
+ |
+ /** |
+ * GetJPEGSize() returns the JPEG image size in pixels for the given |
+ * <code>PPB_ImageCaptureConfig_Private</code>. |
+ * |
+ * @param[in] config A <code>PP_Resource</code> corresponding to an image |
+ * capture config resource. |
+ * @param[out] jpeg_size A <code>PP_Size</code> that indicates the requested |
Pawel Osciak
2014/08/07 06:22:46
s/requested/current/
wuchengli
2014/08/07 15:33:55
Done.
|
+ * JPEG image size. |
+ */ |
+ void GetJPEGSize( |
Owen Lin
2014/08/07 07:45:04
GetJpegSize
wuchengli
2014/08/07 15:33:55
Done.
|
+ [in] PP_Resource config, |
+ [out] PP_Size jpeg_size); |
+ |
+ /** |
+ * SetJPEGSize() sets the JPEG image size for the given |
Owen Lin
2014/08/07 07:45:04
SetJpegSize
wuchengli
2014/08/07 15:33:55
Done.
|
+ * <code>PPB_ImageCaptureConfig_Private</code>. |
+ * |
+ * @param[in] config A <code>PP_Resource</code> corresponding to a |
+ * <code>PPB_ImageCaptureConfig_Private</code>. |
+ * @param[in] jpeg_size A <code>PP_Size</code> that indicates the requested |
+ * JPEG image size. |
+ */ |
+ void SetJPEGSize( |
+ [in] PP_Resource config, |
+ [in] PP_Size jpeg_size); |
+}; |