OLD | NEW |
---|---|
(Empty) | |
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
2 * Use of this source code is governed by a BSD-style license that can be | |
3 * found in the LICENSE file. | |
4 */ | |
5 | |
6 /** | |
7 * This file defines the PPB_ImageCaptureCapabilities interface for establishing | |
8 * an image capture configuration resource within the browser. | |
9 */ | |
10 | |
11 [generate_thunk] | |
12 | |
13 label Chrome { | |
14 [channel=dev] M39 = 0.1 | |
15 }; | |
16 | |
17 /** | |
18 * The <code>PPB_ImageCaptureCapabilities</code> interface contains pointers to | |
19 * several functions for getting the image capture capabilities within the | |
20 * browser. | |
21 */ | |
22 [version=0.1] | |
23 interface PPB_ImageCaptureCapabilities { | |
24 /** | |
25 * IsImageCaptureCapabilities() determines if the given resource is a | |
26 * <code>PPB_ImageCaptureCapabilities</code>. | |
27 * | |
28 * @param[in] resource A <code>PP_Resource</code> corresponding to an image | |
29 * capture capabilities resource. | |
30 * | |
31 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the given | |
32 * resource is an <code>PP_ImageCaptureCapabilities</code> resource, otherwise | |
33 * <code>PP_FALSE</code>. | |
34 */ | |
35 PP_Bool IsImageCaptureCapabilities( | |
36 [in] PP_Resource resource); | |
37 | |
38 /** | |
39 * GetSupportedPhotoSize() returns the supported photo sizes for the given | |
40 * <code>PPB_ImageCaptureCapabilities</code>. | |
41 * | |
42 * @param[in] capabilities A <code>PP_Resource</code> corresponding to an | |
43 * image capture capabilities resource. | |
44 * @param[out] photo_sizes An array of <code>PP_Size</code> corresonding to | |
45 * the supported photo sizes in pixels of the camera. | |
46 */ | |
47 void GetSupportedPhotoSizes( | |
48 [in] PP_Resource capabilities, | |
49 [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.
| |
50 }; | |
OLD | NEW |