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.
7 * This file defines the PPB_ImageCaptureConfig_Private interface for
8 * establishing an image capture configuration resource within the browser.
18 * The <code>PPB_ImageCaptureConfig_Private</code> interface contains pointers
19 * to several functions for establishing image capture configuration within the
20 * browser. The new configuration will take effect after <code>
21 * PPB_ImageCapture_Private.SetConfig</code> is called.
24 interface PPB_ImageCaptureConfig_Private
{
26 * Creates a PPB_ImageCaptureConfig_Private resource.
28 * @param[in] instance A <code>PP_Instance</code> identifying one instance of
31 * @return A <code>PP_Resource</code> corresponding to a
32 * PPB_ImageCaptureConfig_Private resource if successful, 0 if failed.
34 PP_Resource Create
([in] PP_Instance instance
);
37 * IsImageCaptureConfig() determines if the given resource is a
38 * <code>PPB_ImageCaptureConfig_Private</code>.
40 * @param[in] resource A <code>PP_Resource</code> corresponding to an image
41 * capture config resource.
43 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the given
44 * resource is an <code>ImageCaptureConfig_Private</code> resource, otherwise
45 * <code>PP_FALSE</code>.
47 PP_Bool IsImageCaptureConfig
(
48 [in] PP_Resource resource
);
51 * GetPreviewSize() returns the preview image size in pixels for the given
52 * <code>PPB_ImageCaptureConfig_Private</code>.
54 * @param[in] config A <code>PP_Resource</code> corresponding to an image
55 * capture config resource.
56 * @param[out] preview_size A <code>PP_Size</code> that indicates the
57 * requested preview image size.
60 [in] PP_Resource config
,
61 [out] PP_Size preview_size
);
64 * SetPreviewSize() sets the preview image size for the given <code>
65 * PPB_ImageCaptureConfig_Private</code>.
67 * @param[in] config A <code>PP_Resource</code> corresponding to a
68 * <code>PPB_ImageCaptureConfig_Private</code>.
69 * @param[in] preview_size A <code>PP_Size</code> that indicates the requested
73 [in] PP_Resource config
,
74 [in] PP_Size preview_size
);
77 * GetJpegSize() returns the JPEG image size in pixels for the given
78 * <code>PPB_ImageCaptureConfig_Private</code>.
80 * @param[in] config A <code>PP_Resource</code> corresponding to an image
81 * capture config resource.
82 * @param[out] jpeg_size A <code>PP_Size</code> that indicates the current
86 [in] PP_Resource config
,
87 [out] PP_Size jpeg_size
);
90 * SetJpegSize() sets the JPEG image size for the given
91 * <code>PPB_ImageCaptureConfig_Private</code>.
93 * @param[in] config A <code>PP_Resource</code> corresponding to a
94 * <code>PPB_ImageCaptureConfig_Private</code>.
95 * @param[in] jpeg_size A <code>PP_Size</code> that indicates the requested
99 [in] PP_Resource config
,
100 [in] PP_Size jpeg_size
);