Chromium Code Reviews| 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 /* From private/ppb_camera_capabilities_private.idl, | |
| 7 * modified Thu Aug 7 17:22:52 2014. | |
| 8 */ | |
| 9 | |
| 10 #ifndef PPAPI_C_PRIVATE_PPB_CAMERA_CAPABILITIES_PRIVATE_H_ | |
| 11 #define PPAPI_C_PRIVATE_PPB_CAMERA_CAPABILITIES_PRIVATE_H_ | |
| 12 | |
| 13 #include "ppapi/c/pp_bool.h" | |
| 14 #include "ppapi/c/pp_macros.h" | |
| 15 #include "ppapi/c/pp_resource.h" | |
| 16 #include "ppapi/c/pp_size.h" | |
| 17 #include "ppapi/c/pp_stdint.h" | |
| 18 | |
| 19 #define PPB_CAMERACAPABILITIES_PRIVATE_INTERFACE_0_1 \ | |
| 20 "PPB_CameraCapabilities_Private;0.1" | |
| 21 #define PPB_CAMERACAPABILITIES_PRIVATE_INTERFACE \ | |
| 22 PPB_CAMERACAPABILITIES_PRIVATE_INTERFACE_0_1 | |
| 23 | |
| 24 /** | |
| 25 * @file | |
| 26 * This file defines the PPB_CameraCapabilities_Private interface for | |
| 27 * establishing an image capture configuration resource within the browser. | |
| 28 */ | |
| 29 | |
| 30 | |
| 31 /** | |
| 32 * @addtogroup Interfaces | |
| 33 * @{ | |
| 34 */ | |
| 35 /** | |
| 36 * The <code>PPB_CameraCapabilities_Private</code> interface contains pointers | |
| 37 * to several functions for getting the image capture capabilities within the | |
| 38 * browser. | |
| 39 */ | |
| 40 struct PPB_CameraCapabilities_Private_0_1 { | |
| 41 /** | |
| 42 * IsCameraCapabilities() determines if the given resource is a | |
| 43 * <code>PPB_CameraCapabilities_Private</code>. | |
| 44 * | |
| 45 * @param[in] resource A <code>PP_Resource</code> corresponding to an image | |
| 46 * capture capabilities resource. | |
| 47 * | |
| 48 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the given | |
| 49 * resource is an <code>PP_CameraCapabilities_Private</code> resource, | |
| 50 * otherwise <code>PP_FALSE</code>. | |
| 51 */ | |
| 52 PP_Bool (*IsCameraCapabilities)(PP_Resource resource); | |
| 53 /** | |
| 54 * GetSupportedPreviewSizes( | |
|
Justin Chuang
2014/08/11 08:32:35
nit: spurious newline?
wuchengli
2014/08/12 07:27:02
This is auto-generated. We should not change the f
| |
| 55 ) returns the supported preview 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] array_size The size of preview size array. | |
| 61 * @param[out] An array of <code>PP_Size</code> corresponding to the supported | |
| 62 * preview sizes in pixels. The ownership of the array belongs to <code> | |
| 63 * PPB_CameraCapabilities_Private</code> and the caller should not free it. | |
| 64 */ | |
| 65 void (*GetSupportedPreviewSizes)(PP_Resource capabilities, | |
| 66 int32_t* array_size, | |
| 67 struct PP_Size* preview_sizes[]); | |
|
Justin Chuang
2014/08/11 08:32:35
From the comments, the returned array should belon
wuchengli
2014/08/12 07:27:02
I found idl generator did not support this. I've c
| |
| 68 /** | |
| 69 * GetSupportedJpegSize() returns the supported JPEG sizes for the given | |
| 70 * <code>PPB_CameraCapabilities_Private</code>. | |
| 71 * | |
| 72 * @param[in] capabilities A <code>PP_Resource</code> corresponding to an | |
| 73 * image capture capabilities resource. | |
| 74 * @param[out] array_size The size of JPEG size array. If the output of this | |
| 75 * is 0, the camera has no support for generating JPEG images. | |
| 76 * @param[out] An array of <code>PP_Size</code> corresponding to the supported | |
| 77 * JPEG image sizes in pixels. The ownership of the array belongs to <code> | |
| 78 * PPB_CameraCapabilities_Private</code> and the caller should not free it. | |
| 79 */ | |
| 80 void (*GetSupportedJpegSizes)(PP_Resource capabilities, | |
| 81 int32_t* array_size, | |
| 82 struct PP_Size* jpeg_sizes[]); | |
| 83 }; | |
| 84 | |
| 85 typedef struct PPB_CameraCapabilities_Private_0_1 | |
| 86 PPB_CameraCapabilities_Private; | |
| 87 /** | |
| 88 * @} | |
| 89 */ | |
| 90 | |
| 91 #endif /* PPAPI_C_PRIVATE_PPB_CAMERA_CAPABILITIES_PRIVATE_H_ */ | |
| 92 | |
| OLD | NEW |