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_Private</code> interface contains pointers t o | |
Owen Lin
2014/08/07 07:45:04
line too long.
wuchengli
2014/08/07 15:33:55
Done.
| |
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 * GetSupportedPreviewSize() returns the supported preview sizes for the given | |
Pawel Osciak
2014/08/07 06:22:46
s/Size/Sizes/
wuchengli
2014/08/07 15:33:55
Done.
| |
40 * <code>PPB_CameraCapabilities_Private</code>. | |
41 * | |
42 * @param[in] capabilities A <code>PP_Resource</code> corresponding to an | |
43 * image capture capabilities resource. | |
44 * @param[out] count The count of preview size array. | |
Pawel Osciak
2014/08/07 06:22:46
s/count/size/
wuchengli
2014/08/07 15:33:54
Done. I used count because several other ppapi use
| |
45 * | |
46 * @return An array of <code>PP_Size</code> corresondping to | |
Justin Chuang
2014/08/07 04:27:28
typo
wuchengli
2014/08/07 15:33:54
Done.
| |
47 * the supported preview sizes in pixels. | |
48 */ | |
49 [on_failure=NULL] | |
50 PP_Size[] GetSupportedPreviewSizes( | |
51 [in] PP_Resource capabilities, | |
52 [out] int32_t count); | |
Justin Chuang
2014/08/07 04:27:27
When to free the output PPSize[]?
A similar examp
wuchengli
2014/08/07 15:33:54
Good point. If the ownership belongs to the caller
| |
53 | |
54 /** | |
55 * GetSupportedJPEGSize() returns the supported JPEG sizes for the given | |
56 * <code>PPB_CameraCapabilities_Private</code>. | |
57 * | |
58 * @param[in] capabilities A <code>PP_Resource</code> corresponding to an | |
59 * image capture capabilities resource. | |
60 * @param[out] count The count of JPEG size array. If the output of this | |
61 * is 0, the camera has no support for generating JPEG images. | |
62 * | |
63 * @return An array of <code>PP_Size</code> corresondping to the supported | |
64 * JPEG image sizes in pixels. | |
65 */ | |
66 [on_failure=NULL] | |
67 PP_Size[] GetSupportedJPEGSizes( | |
Owen Lin
2014/08/07 07:45:04
In func name, I believe the naming convention sugg
wuchengli
2014/08/07 15:33:54
Pawel suggested JPEG. I just searched the code bas
| |
68 [in] PP_Resource capabilities, | |
Owen Lin
2014/08/07 07:45:04
It's kind of strange to return the array and size
wuchengli
2014/08/07 15:33:55
Done. I thought this generated failure when runnin
| |
69 [out] int32_t count); | |
70 }; | |
OLD | NEW |