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

Side by Side Diff: ppapi/c/private/ppb_camera_device_private.h

Issue 2474673002: Replace references to MediaStreamTrack.getSources() with enumerateDevices() in PPAPI. (Closed)
Patch Set: remove non ppapi files Created 4 years, 1 month 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 /* From private/ppb_camera_device_private.idl, 6 /* From private/ppb_camera_device_private.idl,
7 * modified Fri Feb 20 13:48:52 2015. 7 * modified Wed Nov 2 15:54:24 2016.
8 */ 8 */
9 9
10 #ifndef PPAPI_C_PRIVATE_PPB_CAMERA_DEVICE_PRIVATE_H_ 10 #ifndef PPAPI_C_PRIVATE_PPB_CAMERA_DEVICE_PRIVATE_H_
11 #define PPAPI_C_PRIVATE_PPB_CAMERA_DEVICE_PRIVATE_H_ 11 #define PPAPI_C_PRIVATE_PPB_CAMERA_DEVICE_PRIVATE_H_
12 12
13 #include "ppapi/c/pp_bool.h" 13 #include "ppapi/c/pp_bool.h"
14 #include "ppapi/c/pp_completion_callback.h" 14 #include "ppapi/c/pp_completion_callback.h"
15 #include "ppapi/c/pp_instance.h" 15 #include "ppapi/c/pp_instance.h"
16 #include "ppapi/c/pp_macros.h" 16 #include "ppapi/c/pp_macros.h"
17 #include "ppapi/c/pp_resource.h" 17 #include "ppapi/c/pp_resource.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 * resource is a camera device resource or <code>PP_FALSE</code> 61 * resource is a camera device resource or <code>PP_FALSE</code>
62 * otherwise. 62 * otherwise.
63 */ 63 */
64 PP_Bool (*IsCameraDevice)(PP_Resource resource); 64 PP_Bool (*IsCameraDevice)(PP_Resource resource);
65 /** 65 /**
66 * Opens a camera device. 66 * Opens a camera device.
67 * 67 *
68 * @param[in] camera_device A <code>PP_Resource</code> corresponding to a 68 * @param[in] camera_device A <code>PP_Resource</code> corresponding to a
69 * camera device resource. 69 * camera device resource.
70 * @param[in] device_id A <code>PP_Var</code> identifying a camera device. The 70 * @param[in] device_id A <code>PP_Var</code> identifying a camera device. The
71 * type is string. The ID can be obtained from MediaStreamTrack.getSources() 71 * type is string. The ID can be obtained from
72 * or MediaStreamVideoTrack.id. 72 * navigator.mediaDevices.enumerateDevices() or MediaStreamVideoTrack.id.
73 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon 73 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
74 * completion of <code>Open()</code>. 74 * completion of <code>Open()</code>.
75 * 75 *
76 * @return An error code from <code>pp_errors.h</code>. 76 * @return An error code from <code>pp_errors.h</code>.
77 */ 77 */
78 int32_t (*Open)(PP_Resource camera_device, 78 int32_t (*Open)(PP_Resource camera_device,
79 struct PP_Var device_id, 79 struct PP_Var device_id,
80 struct PP_CompletionCallback callback); 80 struct PP_CompletionCallback callback);
81 /** 81 /**
82 * Disconnects from the camera and cancels all pending requests. 82 * Disconnects from the camera and cancels all pending requests.
(...skipping 26 matching lines...) Expand all
109 struct PP_CompletionCallback callback); 109 struct PP_CompletionCallback callback);
110 }; 110 };
111 111
112 typedef struct PPB_CameraDevice_Private_0_1 PPB_CameraDevice_Private; 112 typedef struct PPB_CameraDevice_Private_0_1 PPB_CameraDevice_Private;
113 /** 113 /**
114 * @} 114 * @}
115 */ 115 */
116 116
117 #endif /* PPAPI_C_PRIVATE_PPB_CAMERA_DEVICE_PRIVATE_H_ */ 117 #endif /* PPAPI_C_PRIVATE_PPB_CAMERA_DEVICE_PRIVATE_H_ */
118 118
OLDNEW
« no previous file with comments | « ppapi/api/private/ppb_camera_device_private.idl ('k') | ppapi/cpp/private/camera_device_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698