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_CameraCapabilities_Private interface for | |
8 * establishing an image capture configuration resource within the browser. | |
9 */ | |
10 | |
11 [generate_thunk] | |
12 | |
13 label Chrome { | |
14 M39 = 0.1 | |
15 }; | |
16 | |
17 /** | |
18 * The <code>PPB_CameraCapabilities</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_CameraCapabilities_Private { | |
24 /** | |
25 * IsCameraCapabilities() determines if the given resource is a | |
26 * <code>PPB_CameraCapabilities_Private</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_CameraCapabilities_Private</code> resource, | |
33 * otherwise <code>PP_FALSE</code>. | |
34 */ | |
35 PP_Bool IsCameraCapabilities( | |
36 [in] PP_Resource resource); | |
37 | |
38 /** | |
39 * GetSupportedJpegSize() returns the supported Jpeg sizes for the given | |
Pawel Osciak
2014/08/03 08:34:38
Should this be Jpeg-specific? Does this have a cor
Pawel Osciak
2014/08/03 08:34:38
s/Jpeg/JPEG/
wuchengli
2014/08/06 08:14:57
This has a corresponding camera API call and shoul
wuchengli
2014/08/06 08:14:57
Replaced all Jpeg with JPEG.
| |
40 * <code>PPB_CameraCapabilities</code>. | |
41 * | |
42 * @param[in] capabilities A <code>PP_Resource</code> corresponding to an | |
43 * image capture capabilities resource. | |
44 * @param[inout] array_size The size of Jpeg size array. If the output of this | |
45 * is 0, the camera has no support of generating Jpeg pictures. | |
Pawel Osciak
2014/08/03 08:34:38
s/of/for/
wuchengli
2014/08/06 08:14:57
Done.
| |
46 * @param[out] jpeg_sizes An array of <code>PP_Size</code> corresonding to | |
Pawel Osciak
2014/08/03 08:34:38
s/corresonding/corresponding/
wuchengli
2014/08/06 08:14:57
Done.
| |
47 * the supported Jpeg photo sizes in pixels of the camera. | |
Pawel Osciak
2014/08/03 08:34:38
s/ of the camera//
I think we should stick to one
wuchengli
2014/08/06 08:14:57
Done.
| |
48 */ | |
49 void GetSupportedJpegSizes( | |
50 [in] PP_Resource capabilities, | |
51 [inout] int32_t array_size, | |
52 [out] PP_Size[] jpeg_sizes); | |
wuchengli
2014/07/29 05:34:27
dmichael@ When I ran generator.py, there was an er
dmichael (off chromium)
2014/07/29 23:07:05
That doesn't seem right. We should not touch out-p
| |
53 }; | |
OLD | NEW |