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

Side by Side Diff: ppapi/api/dev/ppb_device_ref_dev.idl

Issue 11411047: Introduce PPB_AudioInput_Dev v0.3 and refactor the device enumeration code: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/api/dev/ppb_audio_input_dev.idl ('k') | ppapi/c/dev/ppb_audio_input_dev.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 * This file defines the <code>PPB_DeviceRef_Dev</code> interface. 7 * This file defines the <code>PPB_DeviceRef_Dev</code> interface.
8 */ 8 */
9 9
10 [generate_thunk] 10 [generate_thunk]
11 11
12 label Chrome { 12 label Chrome {
13 M18 = 0.1 13 M18 = 0.1
14 }; 14 };
15 15
16 /** 16 /**
17 * Defines the callback type to receive device change notifications for
18 * <code>PPB_AudioInput_Dev.MonitorDeviceChange()</code> and
19 * <code>PPB_VideoCapture_Dev.MonitorDeviceChange()</code>.
20 *
21 * @param[inout] user_data The opaque pointer that the caller passed into
22 * <code>MonitorDeviceChange()</code>.
23 * @param[in] device_count How many devices in the array.
24 * @param[in] devices An array of <code>PPB_DeviceRef_Dev</code>. Please note
25 * that the ref count of the elements is not increased on behalf of the plugin.
26 */
27 typedef void PP_MonitorDeviceChangeCallback(
28 [inout] mem_t user_data,
29 [in] uint32_t device_count,
30 [in, size_is(device_count)] PP_Resource[] devices);
31
32 /**
17 * Device types. 33 * Device types.
18 */ 34 */
19 [assert_size(4)] 35 [assert_size(4)]
20 enum PP_DeviceType_Dev { 36 enum PP_DeviceType_Dev {
21 PP_DEVICETYPE_DEV_INVALID = 0, 37 PP_DEVICETYPE_DEV_INVALID = 0,
22 PP_DEVICETYPE_DEV_AUDIOCAPTURE = 1, 38 PP_DEVICETYPE_DEV_AUDIOCAPTURE = 1,
23 PP_DEVICETYPE_DEV_VIDEOCAPTURE = 2 39 PP_DEVICETYPE_DEV_VIDEOCAPTURE = 2
24 }; 40 };
25 41
26 interface PPB_DeviceRef_Dev { 42 interface PPB_DeviceRef_Dev {
(...skipping 24 matching lines...) Expand all
51 * 67 *
52 * @param[in] device_ref A <code>PP_Resource</code> corresponding to a device 68 * @param[in] device_ref A <code>PP_Resource</code> corresponding to a device
53 * reference. 69 * reference.
54 * 70 *
55 * @return A <code>PP_Var</code> of type <code>PP_VARTYPE_STRING</code> 71 * @return A <code>PP_Var</code> of type <code>PP_VARTYPE_STRING</code>
56 * containing the name of the device if successful; a <code>PP_Var</code> of 72 * containing the name of the device if successful; a <code>PP_Var</code> of
57 * type <code>PP_VARTYPE_UNDEFINED</code> if failed. 73 * type <code>PP_VARTYPE_UNDEFINED</code> if failed.
58 */ 74 */
59 PP_Var GetName([in] PP_Resource device_ref); 75 PP_Var GetName([in] PP_Resource device_ref);
60 }; 76 };
OLDNEW
« no previous file with comments | « ppapi/api/dev/ppb_audio_input_dev.idl ('k') | ppapi/c/dev/ppb_audio_input_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698