OLD | NEW |
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 /** | 6 /** |
7 * Defines the <code>PPB_CameraDevice_Private</code> interface. Used for | 7 * Defines the <code>PPB_CameraDevice_Private</code> interface. Used for |
8 * manipulating a camera device. | 8 * manipulating a camera device. |
9 */ | 9 */ |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 * otherwise. | 44 * otherwise. |
45 */ | 45 */ |
46 PP_Bool IsCameraDevice([in] PP_Resource resource); | 46 PP_Bool IsCameraDevice([in] PP_Resource resource); |
47 | 47 |
48 /** | 48 /** |
49 * Opens a camera device. | 49 * Opens a camera device. |
50 * | 50 * |
51 * @param[in] camera_device A <code>PP_Resource</code> corresponding to a | 51 * @param[in] camera_device A <code>PP_Resource</code> corresponding to a |
52 * camera device resource. | 52 * camera device resource. |
53 * @param[in] device_id A <code>PP_Var</code> identifying a camera device. The | 53 * @param[in] device_id A <code>PP_Var</code> identifying a camera device. The |
54 * type is string. The ID can be obtained from MediaStreamTrack.getSources() | 54 * type is string. The ID can be obtained from |
55 * or MediaStreamVideoTrack.id. | 55 * navigator.mediaDevices.enumerateDevices() or MediaStreamVideoTrack.id. |
56 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon | 56 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon |
57 * completion of <code>Open()</code>. | 57 * completion of <code>Open()</code>. |
58 * | 58 * |
59 * @return An error code from <code>pp_errors.h</code>. | 59 * @return An error code from <code>pp_errors.h</code>. |
60 */ | 60 */ |
61 int32_t Open( | 61 int32_t Open( |
62 [in] PP_Resource camera_device, | 62 [in] PP_Resource camera_device, |
63 [in] PP_Var device_id, | 63 [in] PP_Var device_id, |
64 [in] PP_CompletionCallback callback); | 64 [in] PP_CompletionCallback callback); |
65 | 65 |
(...skipping 21 matching lines...) Expand all Loading... |
87 * be changed. | 87 * be changed. |
88 * @param[in] callback <code>PP_CompletionCallback</code> to be called upon | 88 * @param[in] callback <code>PP_CompletionCallback</code> to be called upon |
89 * completion of <code>GetCameraCapabilities()</code>. | 89 * completion of <code>GetCameraCapabilities()</code>. |
90 * | 90 * |
91 * @return An int32_t containing a result code from <code>pp_errors.h</code>. | 91 * @return An int32_t containing a result code from <code>pp_errors.h</code>. |
92 */ | 92 */ |
93 int32_t GetCameraCapabilities([in] PP_Resource camera_device, | 93 int32_t GetCameraCapabilities([in] PP_Resource camera_device, |
94 [out] PP_Resource capabilities, | 94 [out] PP_Resource capabilities, |
95 [in] PP_CompletionCallback callback); | 95 [in] PP_CompletionCallback callback); |
96 }; | 96 }; |
OLD | NEW |