Chromium Code Reviews| Index: ppapi/api/ppb_image_capture_capabilities.idl |
| diff --git a/ppapi/api/ppb_image_capture_capabilities.idl b/ppapi/api/ppb_image_capture_capabilities.idl |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d78770da836fce39432f6f83f660338f2919d78e |
| --- /dev/null |
| +++ b/ppapi/api/ppb_image_capture_capabilities.idl |
| @@ -0,0 +1,50 @@ |
| +/* 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_ImageCaptureCapabilities interface for establishing |
| + * an image capture configuration resource within the browser. |
| + */ |
| + |
| +[generate_thunk] |
| + |
| +label Chrome { |
| + [channel=dev] M39 = 0.1 |
| +}; |
| + |
| +/** |
| + * The <code>PPB_ImageCaptureCapabilities</code> interface contains pointers to |
| + * several functions for getting the image capture capabilities within the |
| + * browser. |
| + */ |
| +[version=0.1] |
| +interface PPB_ImageCaptureCapabilities { |
| + /** |
| + * IsImageCaptureCapabilities() determines if the given resource is a |
| + * <code>PPB_ImageCaptureCapabilities</code>. |
| + * |
| + * @param[in] resource A <code>PP_Resource</code> corresponding to an image |
| + * capture capabilities resource. |
| + * |
| + * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the given |
| + * resource is an <code>PP_ImageCaptureCapabilities</code> resource, otherwise |
| + * <code>PP_FALSE</code>. |
| + */ |
| + PP_Bool IsImageCaptureCapabilities( |
| + [in] PP_Resource resource); |
| + |
| + /** |
| + * GetSupportedPhotoSize() returns the supported photo sizes for the given |
| + * <code>PPB_ImageCaptureCapabilities</code>. |
| + * |
| + * @param[in] capabilities A <code>PP_Resource</code> corresponding to an |
| + * image capture capabilities resource. |
| + * @param[out] photo_sizes An array of <code>PP_Size</code> corresonding to |
| + * the supported photo sizes in pixels of the camera. |
| + */ |
| + void GetSupportedPhotoSizes( |
| + [in] PP_Resource capabilities, |
| + [out] PP_Size[] photo_sizes); |
|
dmichael (off chromium)
2014/07/16 23:10:54
This would also have to have the array size as an
wuchengli
2014/07/29 03:24:50
Done.
|
| +}; |