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

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

Issue 391323002: Pepper: add Image Capture interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
(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 Wed Aug 6 15:53:42 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
38 * several functions for getting the image capture capabilities within the
39 * browser.
40 */
41 struct PPB_CameraCapabilities_Private_0_1 {
42 /**
43 * IsCameraCapabilities() determines if the given resource is a
44 * <code>PPB_CameraCapabilities_Private</code>.
45 *
46 * @param[in] resource A <code>PP_Resource</code> corresponding to an image
47 * capture capabilities resource.
48 *
49 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the given
50 * resource is an <code>PP_CameraCapabilities_Private</code> resource,
51 * otherwise <code>PP_FALSE</code>.
52 */
53 PP_Bool (*IsCameraCapabilities)(PP_Resource resource);
54 /**
55 * GetSupportedPreviewSize() 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] count The count of preview size array.
61 *
62 * @return An array of <code>PP_Size</code> corresondping to
63 * the supported preview sizes in pixels.
64 */
65 struct PP_Size (*GetSupportedPreviewSizes[])(PP_Resource capabilities,
Justin Chuang 2014/08/07 04:30:28 The prototype is not generated correctly.
wuchengli 2014/08/07 15:33:55 Done. Moved the return value to a parameter.
66 int32_t* count);
67 /**
68 * GetSupportedJPEGSize() returns the supported JPEG sizes for the given
69 * <code>PPB_CameraCapabilities_Private</code>.
70 *
71 * @param[in] capabilities A <code>PP_Resource</code> corresponding to an
72 * image capture capabilities resource.
73 * @param[out] count The count of JPEG size array. If the output of this
74 * is 0, the camera has no support for generating JPEG images.
75 *
76 * @return An array of <code>PP_Size</code> corresondping to the supported
Pawel Osciak 2014/08/07 06:22:46 s/corresondping/corresponding/
wuchengli 2014/08/07 15:33:55 Done.
77 * JPEG image sizes in pixels.
78 */
79 struct PP_Size (*GetSupportedJPEGSizes[])(PP_Resource capabilities,
80 int32_t* count);
81 };
82
83 typedef struct PPB_CameraCapabilities_Private_0_1
84 PPB_CameraCapabilities_Private;
85 /**
86 * @}
87 */
88
89 #endif /* PPAPI_C_PRIVATE_PPB_CAMERA_CAPABILITIES_PRIVATE_H_ */
90
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698