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

Side by Side Diff: ppapi/api/private/ppb_camera_capabilities_private.idl

Issue 391323002: Pepper: add Image Capture interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add c++ wrappers and remove message loop 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 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
19 * to several functions for getting the image capture capabilities within the
20 * browser.
21 */
22 [version=0.1]
23 interface PPB_CameraCapabilities_Private {
24 /**
25 * Creates a PPB_CameraCapabilities_Private resource.
26 *
27 * @param[in] instance A <code>PP_Instance</code> identifying one instance of
28 * a module.
29 *
30 * @return A <code>PP_Resource</code> corresponding to a
31 * PPB_CameraCapabilities_Private resource if successful, 0 if failed.
32 */
33 PP_Resource Create([in] PP_Instance instance);
34
Justin Chuang 2014/08/14 03:23:46 Paired Close()?
wuchengli 2014/08/14 03:44:47 This is a plugin-side immutable object. No need to
35 /**
36 * IsCameraCapabilities() determines if the given resource is a
37 * <code>PPB_CameraCapabilities_Private</code>.
38 *
39 * @param[in] resource A <code>PP_Resource</code> corresponding to an image
40 * capture capabilities resource.
41 *
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,
44 * otherwise <code>PP_FALSE</code>.
45 */
46 PP_Bool IsCameraCapabilities(
47 [in] PP_Resource resource);
48
49 /**
50 * GetSupportedPreviewSizes() returns the supported preview sizes for the
51 * given <code>PPB_CameraCapabilities_Private</code>.
52 *
53 * @param[in] capabilities A <code>PP_Resource</code> corresponding to an
54 * image capture capabilities resource.
55 * @param[out] array_size The size of preview size array.
56 * @param[out] A NULL-terminated array of pointer to <code>PP_Size</code>
Justin Chuang 2014/08/14 03:23:46 Is it still NULL-terminated?
wuchengli 2014/08/14 03:44:47 Oops. I forgot to update the comments. Done.
57 * corresponding to the supported preview sizes in pixels. The ownership of
58 * the array belongs to <code> PPB_CameraCapabilities_Private</code> and the
59 * caller should not free it. When a PPB_CameraCapabilities_Private is
60 * deleted, the array returning from this is no longer valid.
61 */
62 void GetSupportedPreviewSizes(
63 [in] PP_Resource capabilities,
64 [out] int32_t array_size,
65 [out, size_is(array_size)] PP_Size[] preview_sizes);
66
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] array_size The size of JPEG size array. If the output of this
74 * is 0, the camera has no support for generating JPEG images.
75 * @param[out] A NULL-terminated array of pointer to <code>PP_Size</code>
Justin Chuang 2014/08/14 03:23:46 dittos
wuchengli 2014/08/14 03:44:47 Done.
76 * corresponding to the supported JPEG image sizes in pixels. The ownership
77 * of the array belongs to <code>PPB_CameraCapabilities_Private</code> and
78 * the caller should not free it. When a PPB_CameraCapabilities_Private is
79 * deleted, the array returning from this is no longer valid.
80 */
81 void GetSupportedJpegSizes(
82 [in] PP_Resource capabilities,
83 [out] int32_t array_size,
84 [out, size_is(array_size)] PP_Size[] jpeg_sizes);
85 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698