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

Side by Side Diff: ppapi/api/ppb_image_capture_config.idl

Issue 391323002: Pepper: add Image Capture interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add PP_ImageCaptureConfig and PP_ImageCaptureCapabilities Created 6 years, 5 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 /**
7 * This file defines the PPB_ImageCaptureConfig interface for establishing an
8 * image capture configuration resource within the browser.
9 */
10
11 [generate_thunk]
12
13 label Chrome {
14 [channel=dev] M39 = 0.1
15 };
16
17 /**
18 * The <code>PPB_ImageCaptureConfig</code> interface contains pointers to
19 * several functions for establishing your image capture configuration within
20 * the browser. The new configuration will take effect after
21 * <code>PPB_ImageCapture.SetConfig</code> is called.
22 */
23 [version=0.1]
24 interface PPB_ImageCaptureConfig {
25 /**
26 * IsImageCaptureConfig() determines if the given resource is a
27 * <code>PPB_ImageCaptureConfig</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</code> resource, otherwise
34 * <code>PP_FALSE</code>.
35 */
36 PP_Bool IsImageCaptureConfig(
37 [in] PP_Resource resource);
38
39 /**
40 * GetPhotoSize() returns the current photo size in pixels for the given
41 * <code>PPB_ImageCaptureConfig</code>.
42 *
43 * @param[in] config A <code>PP_Resource</code> corresponding to an image
44 * capture config resource.
45 *
46 * @return A <code>PP_Size</code> containing the current photo size of the
47 * configuration.
48 */
49 PP_Size GetPhotoSize(
50 [in] PP_Resource config);
51
52 /**
53 * SetPhotoSize() sets the photo size for the given
54 * <code>PPB_ImageCaptureConfig</code>.
55 *
56 * @param[in] config A <code>PP_Resource</code> corresponding to a
57 * <code>PPB_ImageCaptureConfig</code>.
58 * @param[in] photo_size A <code>PP_Size</code> that indicates the requested
59 * photo size.
60 */
61 void SetPhotoSize(
62 [in] PP_Resource config,
63 [in] PP_Size photo_size);
64 };
OLDNEW
« ppapi/api/ppb_image_capture_capabilities.idl ('K') | « ppapi/api/ppb_image_capture_capabilities.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698