OLD | NEW |
---|---|
1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 2014 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 /** | 6 /** |
7 * This file defines the PPB_CameraCapabilities_Private interface for | 7 * This file defines the PPB_CameraCapabilities_Private interface for |
8 * establishing an image capture configuration resource within the browser. | 8 * establishing an image capture configuration resource within the browser. |
9 */ | 9 */ |
10 | 10 |
11 [generate_thunk] | 11 [generate_thunk] |
12 | 12 |
13 label Chrome { | 13 label Chrome { |
14 M39 = 0.1 | 14 M42 = 0.1 |
15 }; | 15 }; |
16 | 16 |
17 /** | 17 /** |
18 * The <code>PPB_CameraCapabilities_Private</code> interface contains pointers | 18 * The <code>PPB_CameraCapabilities_Private</code> interface contains pointers |
19 * to several functions for getting the image capture capabilities within the | 19 * to several functions for getting the image capture capabilities within the |
20 * browser. | 20 * browser. |
21 */ | 21 */ |
22 [version=0.1] | 22 [version=0.1] |
23 interface PPB_CameraCapabilities_Private { | 23 interface PPB_CameraCapabilities_Private { |
24 /** | 24 /** |
(...skipping 12 matching lines...) Expand all Loading... | |
37 * <code>PPB_CameraCapabilities_Private</code>. | 37 * <code>PPB_CameraCapabilities_Private</code>. |
38 * | 38 * |
39 * @param[in] resource A <code>PP_Resource</code> corresponding to an image | 39 * @param[in] resource A <code>PP_Resource</code> corresponding to an image |
40 * capture capabilities resource. | 40 * capture capabilities resource. |
41 * | 41 * |
42 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the given | 42 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the given |
43 * resource is an <code>PP_CameraCapabilities_Private</code> resource, | 43 * resource is an <code>PP_CameraCapabilities_Private</code> resource, |
44 * otherwise <code>PP_FALSE</code>. | 44 * otherwise <code>PP_FALSE</code>. |
45 */ | 45 */ |
46 PP_Bool IsCameraCapabilities( | 46 PP_Bool IsCameraCapabilities( |
47 [in] PP_Resource resource); | 47 [in] PP_Resource resource); |
dmichael (off chromium)
2015/01/28 00:00:35
I know this is minor, but I would rather see funct
| |
48 | 48 |
49 /** | 49 /** |
50 * GetSupportedPreviewSizes() returns the supported preview sizes for the | 50 * GetSupportedPreviewSizes() returns the supported preview sizes for the |
51 * given <code>PPB_CameraCapabilities_Private</code>. | 51 * given <code>PPB_CameraCapabilities_Private</code>. |
52 * | 52 * |
53 * @param[in] capabilities A <code>PP_Resource</code> corresponding to an | 53 * @param[in] capabilities A <code>PP_Resource</code> corresponding to an |
54 * image capture capabilities resource. | 54 * image capture capabilities resource. |
55 * @param[out] array_size The size of preview size array. | 55 * @param[out] array_size The size of preview size array. |
56 * @param[out] preview_sizes An array of <code>PP_Size</code> corresponding | 56 * @param[out] preview_sizes An array of <code>PP_Size</code> corresponding |
57 * to the supported preview sizes in pixels. The ownership of the array | 57 * to the supported preview sizes in pixels. The ownership of the array |
(...skipping 18 matching lines...) Expand all Loading... | |
76 * the supported JPEG image sizes in pixels. The ownership of the array | 76 * the supported JPEG image sizes in pixels. The ownership of the array |
77 * belongs to <code>PPB_CameraCapabilities_Private</code> and the caller | 77 * belongs to <code>PPB_CameraCapabilities_Private</code> and the caller |
78 * should not free it. When a PPB_CameraCapabilities_Private is deleted, the | 78 * should not free it. When a PPB_CameraCapabilities_Private is deleted, the |
79 * array returning from this is no longer valid. | 79 * array returning from this is no longer valid. |
80 */ | 80 */ |
81 void GetSupportedJpegSizes( | 81 void GetSupportedJpegSizes( |
82 [in] PP_Resource capabilities, | 82 [in] PP_Resource capabilities, |
83 [out] int32_t array_size, | 83 [out] int32_t array_size, |
84 [out, size_is(array_size)] PP_Size[] jpeg_sizes); | 84 [out, size_is(array_size)] PP_Size[] jpeg_sizes); |
85 }; | 85 }; |
OLD | NEW |