OLD | NEW |
(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 }; |
OLD | NEW |