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

Side by Side Diff: ppapi/cpp/private/camera_capabilities_private.h

Issue 848863002: PPAPI: implement GetSupportedPreviewSizes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo: int32->int32_t Created 5 years, 10 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
OLDNEW
1 /* Copyright 2014 The Chromium Authors. All rights reserved. 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 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 #ifndef PPAPI_CPP_PRIVATE_CAMERA_CAPABILITIES_PRIVATE_H_ 6 #ifndef PPAPI_CPP_PRIVATE_CAMERA_CAPABILITIES_PRIVATE_H_
7 #define PPAPI_CPP_PRIVATE_CAMERA_CAPABILITIES_PRIVATE_H_ 7 #define PPAPI_CPP_PRIVATE_CAMERA_CAPABILITIES_PRIVATE_H_
8 8
9 #include <vector>
10
9 #include "ppapi/c/private/ppb_camera_capabilities_private.h" 11 #include "ppapi/c/private/ppb_camera_capabilities_private.h"
10 #include "ppapi/cpp/resource.h" 12 #include "ppapi/cpp/resource.h"
11 #include "ppapi/cpp/size.h" 13 #include "ppapi/cpp/size.h"
12 14
13 /// @file 15 /// @file
14 /// This file defines the CameraCapabilities_Private interface for 16 /// This file defines the CameraCapabilities_Private interface for
15 /// establishing an image capture configuration resource within the browser. 17 /// establishing an image capture configuration resource within the browser.
16 namespace pp { 18 namespace pp {
17 19
18 /// The <code>CameraCapabilities_Private</code> interface contains methods for 20 /// The <code>CameraCapabilities_Private</code> interface contains methods for
(...skipping 10 matching lines...) Expand all
29 /// </code>. 31 /// </code>.
30 CameraCapabilities_Private(const CameraCapabilities_Private& other); 32 CameraCapabilities_Private(const CameraCapabilities_Private& other);
31 33
32 /// Constructs a <code>CameraCapabilities_Private</code> from a <code> 34 /// Constructs a <code>CameraCapabilities_Private</code> from a <code>
33 /// Resource</code>. 35 /// Resource</code>.
34 /// 36 ///
35 /// @param[in] resource A <code>PPB_CameraCapabilities_Private</code> 37 /// @param[in] resource A <code>PPB_CameraCapabilities_Private</code>
36 /// resource. 38 /// resource.
37 explicit CameraCapabilities_Private(const Resource& resource); 39 explicit CameraCapabilities_Private(const Resource& resource);
38 40
39 /// Constructs a <code>CameraCapabilities_Private</code> object.
40 ///
41 /// @param[in] instance The instance with which this resource will be
42 /// associated.
43 explicit CameraCapabilities_Private(const InstanceHandle& instance);
44
45 /// A constructor used when you have received a <code>PP_Resource</code> as a 41 /// A constructor used when you have received a <code>PP_Resource</code> as a
46 /// return value that has had 1 ref added for you. 42 /// return value that has had 1 ref added for you.
47 /// 43 ///
48 /// @param[in] resource A <code>PPB_CameraCapabilities_Private</code> 44 /// @param[in] resource A <code>PPB_CameraCapabilities_Private</code>
49 /// resource. 45 /// resource.
50 CameraCapabilities_Private(PassRef, PP_Resource resource); 46 CameraCapabilities_Private(PassRef, PP_Resource resource);
51 47
52 // Destructor. 48 // Destructor.
53 ~CameraCapabilities_Private(); 49 ~CameraCapabilities_Private();
54 50
55 /// GetSupportedPreviewSizes() returns the supported preview sizes for the 51 /// GetSupportedPreviewSizes() returns the supported preview sizes for the
56 /// given <code>CameraCapabilities_Private</code>. 52 /// given <code>CameraCapabilities_Private</code>.
57 /// 53 ///
58 /// @param[out] A vector of <code>Size</code> corresponding to the 54 /// @param[out] A vector of <code>Size</code> corresponding to the
59 /// supported preview sizes in pixels. 55 /// supported preview sizes in pixels.
60 void GetSupportedPreviewSizes(std::vector<Size>* preview_sizes); 56 void GetSupportedPreviewSizes(std::vector<Size>* preview_sizes);
61 57
62 /// GetSupportedJpegSize() returns the supported JPEG sizes for the given
63 /// <code>CameraCapabilities_Private</code>.
64 ///
65 /// @param[out] A vector of <code>Size</code> corresponding to the
66 /// supported JPEG image sizes in pixels.
67 void GetSupportedJpegSizes(std::vector<Size>* jpeg_sizes);
68
69 /// IsCameraCapabilities() determines if the given resource is a 58 /// IsCameraCapabilities() determines if the given resource is a
70 /// <code>CameraCapabilities_Private</code>. 59 /// <code>CameraCapabilities_Private</code>.
71 /// 60 ///
72 /// @param[in] resource A <code>Resource</code> corresponding to an image 61 /// @param[in] resource A <code>Resource</code> corresponding to an image
73 /// capture capabilities resource. 62 /// capture capabilities resource.
74 /// 63 ///
75 /// @return true if the given resource is an <code> 64 /// @return true if the given resource is an <code>
76 /// CameraCapabilities_Private</code> resource, otherwise false. 65 /// CameraCapabilities_Private</code> resource, otherwise false.
77 static bool IsCameraCapabilities(const Resource& resource); 66 static bool IsCameraCapabilities(const Resource& resource);
78 }; 67 };
79 68
80 } // namespace pp 69 } // namespace pp
81 70
82 #endif /* PPAPI_CPP_PRIVATE_CAMERA_CAPABILITIES_PRIVATE_H_ */ 71 #endif /* PPAPI_CPP_PRIVATE_CAMERA_CAPABILITIES_PRIVATE_H_ */
83
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_image_capture_private.h ('k') | ppapi/cpp/private/camera_capabilities_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698