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

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

Issue 391323002: Pepper: add Image Capture interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments 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_ImageCaptureConfig_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_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.
22 */
23 [version=0.1]
24 interface PPB_ImageCaptureConfig_Private {
25 /**
26 * IsImageCaptureConfig() determines if the given resource is a
27 * <code>PPB_ImageCaptureConfig_Private</code>.
28 *
29 * @param[in] resource A <code>PP_Resource</code> corresponding to an image
30 * capture config resource.
31 *
32 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the given
33 * resource is an <code>ImageCaptureConfig_Private</code> resource, otherwise
34 * <code>PP_FALSE</code>.
35 */
36 PP_Bool IsImageCaptureConfig(
37 [in] PP_Resource resource);
38
39 /**
40 * GetPreviewSize() returns the preview image size in pixels for the given
41 * <code>PPB_ImageCaptureConfig_Private</code>.
42 *
43 * @param[in] config A <code>PP_Resource</code> corresponding to an image
44 * capture config resource.
45 * @param[out] preview_size A <code>PP_Size</code> that indicates the
46 * requested preview image size.
47 */
48 void GetPreviewSize(
49 [in] PP_Resource config,
50 [out] PP_Size preview_size);
51
52 /**
53 * SetPreviewSize() sets the preview image size for the given <code>
54 * PPB_ImageCaptureConfig_Private</code>.
55 *
56 * @param[in] config A <code>PP_Resource</code> corresponding to a
57 * <code>PPB_ImageCaptureConfig_Private</code>.
58 * @param[in] preview_size A <code>PP_Size</code> that indicates the requested
59 * preview image size.
60 */
61 void SetPreviewSize(
62 [in] PP_Resource config,
63 [in] PP_Size preview_size);
64
65 /**
66 * GetJpegSize() returns the JPEG image size in pixels for the given
67 * <code>PPB_ImageCaptureConfig_Private</code>.
68 *
69 * @param[in] config A <code>PP_Resource</code> corresponding to an image
70 * capture config resource.
71 * @param[out] jpeg_size A <code>PP_Size</code> that indicates the current
72 * JPEG image size.
73 */
74 void GetJpegSize(
75 [in] PP_Resource config,
76 [out] PP_Size jpeg_size);
77
78 /**
79 * SetJpegSize() sets the JPEG image size for the given
80 * <code>PPB_ImageCaptureConfig_Private</code>.
81 *
82 * @param[in] config A <code>PP_Resource</code> corresponding to a
83 * <code>PPB_ImageCaptureConfig_Private</code>.
84 * @param[in] jpeg_size A <code>PP_Size</code> that indicates the requested
85 * JPEG image size.
86 */
87 void SetJpegSize(
88 [in] PP_Resource config,
89 [in] PP_Size jpeg_size);
90 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698