Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: ppapi/c/private/ppb_camera_capabilities_private.h

Issue 490433002: PPAPI: make generator output a pointer to an array correctly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 /* From private/ppb_camera_capabilities_private.idl, 6 /* From private/ppb_camera_capabilities_private.idl,
7 * modified Thu Aug 14 11:40:27 2014. 7 * modified Tue Aug 19 14:43:34 2014.
8 */ 8 */
9 9
10 #ifndef PPAPI_C_PRIVATE_PPB_CAMERA_CAPABILITIES_PRIVATE_H_ 10 #ifndef PPAPI_C_PRIVATE_PPB_CAMERA_CAPABILITIES_PRIVATE_H_
11 #define PPAPI_C_PRIVATE_PPB_CAMERA_CAPABILITIES_PRIVATE_H_ 11 #define PPAPI_C_PRIVATE_PPB_CAMERA_CAPABILITIES_PRIVATE_H_
12 12
13 #include "ppapi/c/pp_bool.h" 13 #include "ppapi/c/pp_bool.h"
14 #include "ppapi/c/pp_instance.h" 14 #include "ppapi/c/pp_instance.h"
15 #include "ppapi/c/pp_macros.h" 15 #include "ppapi/c/pp_macros.h"
16 #include "ppapi/c/pp_resource.h" 16 #include "ppapi/c/pp_resource.h"
17 #include "ppapi/c/pp_size.h" 17 #include "ppapi/c/pp_size.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 * image capture capabilities resource. 69 * image capture capabilities resource.
70 * @param[out] array_size The size of preview size array. 70 * @param[out] array_size The size of preview size array.
71 * @param[out] An array of <code>PP_Size</code> corresponding to the 71 * @param[out] An array of <code>PP_Size</code> corresponding to the
72 * supported preview sizes in pixels. The ownership of the array belongs to 72 * supported preview sizes in pixels. The ownership of the array belongs to
73 * <code>PPB_CameraCapabilities_Private</code> and the caller should not 73 * <code>PPB_CameraCapabilities_Private</code> and the caller should not
74 * free it. When a PPB_CameraCapabilities_Private is deleted, the array 74 * free it. When a PPB_CameraCapabilities_Private is deleted, the array
75 * returning from this is no longer valid. 75 * returning from this is no longer valid.
76 */ 76 */
77 void (*GetSupportedPreviewSizes)(PP_Resource capabilities, 77 void (*GetSupportedPreviewSizes)(PP_Resource capabilities,
78 int32_t* array_size, 78 int32_t* array_size,
79 struct PP_Size* preview_sizes[]); 79 struct PP_Size** preview_sizes);
80 /** 80 /**
81 * GetSupportedJpegSize() returns the supported JPEG sizes for the given 81 * GetSupportedJpegSize() returns the supported JPEG sizes for the given
82 * <code>PPB_CameraCapabilities_Private</code>. 82 * <code>PPB_CameraCapabilities_Private</code>.
83 * 83 *
84 * @param[in] capabilities A <code>PP_Resource</code> corresponding to an 84 * @param[in] capabilities A <code>PP_Resource</code> corresponding to an
85 * image capture capabilities resource. 85 * image capture capabilities resource.
86 * @param[out] array_size The size of JPEG size array. If the output of this 86 * @param[out] array_size The size of JPEG size array. If the output of this
87 * is 0, the camera has no support for generating JPEG images. 87 * is 0, the camera has no support for generating JPEG images.
88 * @param[out] An array of <code>PP_Size</code> corresponding to the 88 * @param[out] An array of <code>PP_Size</code> corresponding to the
89 * supported JPEG image sizes in pixels. The ownership of the array belongs 89 * supported JPEG image sizes in pixels. The ownership of the array belongs
90 * to <code>PPB_CameraCapabilities_Private</code> and the caller should not 90 * to <code>PPB_CameraCapabilities_Private</code> and the caller should not
91 * free it. When a PPB_CameraCapabilities_Private is deleted, the array 91 * free it. When a PPB_CameraCapabilities_Private is deleted, the array
92 * returning from this is no longer valid. 92 * returning from this is no longer valid.
93 */ 93 */
94 void (*GetSupportedJpegSizes)(PP_Resource capabilities, 94 void (*GetSupportedJpegSizes)(PP_Resource capabilities,
95 int32_t* array_size, 95 int32_t* array_size,
96 struct PP_Size* jpeg_sizes[]); 96 struct PP_Size** jpeg_sizes);
97 }; 97 };
98 98
99 typedef struct PPB_CameraCapabilities_Private_0_1 99 typedef struct PPB_CameraCapabilities_Private_0_1
100 PPB_CameraCapabilities_Private; 100 PPB_CameraCapabilities_Private;
101 /** 101 /**
102 * @} 102 * @}
103 */ 103 */
104 104
105 #endif /* PPAPI_C_PRIVATE_PPB_CAMERA_CAPABILITIES_PRIVATE_H_ */ 105 #endif /* PPAPI_C_PRIVATE_PPB_CAMERA_CAPABILITIES_PRIVATE_H_ */
106 106
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/private/ppp_flash_browser_operations.h » ('j') | ppapi/generators/idl_c_proto.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698