Chromium Code Reviews| 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 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 | |
|
Pawel Osciak
2014/08/03 08:34:38
s/your//
wuchengli
2014/08/06 08:14:57
Done.
| |
| 20 * the browser. The new configuration will take effect after | |
| 21 * <code>PPB_ImageCapture.SetConfig</code> is called. | |
|
Pawel Osciak
2014/08/03 08:34:38
s/PPB_ImageCapture/PPB_ImageCapture_Private/ ?
wuchengli
2014/08/06 08:14:57
Done.
| |
| 22 */ | |
| 23 [version=0.1] | |
| 24 interface PPB_ImageCaptureConfig_Private { | |
| 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 * GetJpegSize() returns the Jpeg 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 GetJpegSize( | |
| 50 [in] PP_Resource config); | |
| 51 | |
| 52 /** | |
| 53 * SetJpegSize() sets the Jpeg 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 */ | |
|
Justin Chuang
2014/08/03 09:45:45
Can this method returns fail on wrong photo_size?
wuchengli
2014/08/06 08:14:57
No. This method only stores the size in this objec
| |
| 61 void SetJpegSize( | |
| 62 [in] PP_Resource config, | |
| 63 [in] PP_Size photo_size); | |
| 64 }; | |
| OLD | NEW |