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

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

Issue 2755613002: Support audio output device enumeration and selection in PPAPI (Closed)
Patch Set: Fix format, Rebase Created 3 years, 8 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
« no previous file with comments | « ppapi/api/dev/ppb_audio_output_dev.idl ('k') | ppapi/c/BUILD.gn » ('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]
(...skipping 18 matching lines...) Expand all
29 [in] uint32_t device_count, 29 [in] uint32_t device_count,
30 [in, size_is(device_count)] PP_Resource[] devices); 30 [in, size_is(device_count)] PP_Resource[] devices);
31 31
32 /** 32 /**
33 * Device types. 33 * Device types.
34 */ 34 */
35 [assert_size(4)] 35 [assert_size(4)]
36 enum PP_DeviceType_Dev { 36 enum PP_DeviceType_Dev {
37 PP_DEVICETYPE_DEV_INVALID = 0, 37 PP_DEVICETYPE_DEV_INVALID = 0,
38 PP_DEVICETYPE_DEV_AUDIOCAPTURE = 1, 38 PP_DEVICETYPE_DEV_AUDIOCAPTURE = 1,
39 PP_DEVICETYPE_DEV_VIDEOCAPTURE = 2 39 PP_DEVICETYPE_DEV_VIDEOCAPTURE = 2,
40 PP_DEVICETYPE_DEV_AUDIOOUTPUT = 3
40 }; 41 };
41 42
42 interface PPB_DeviceRef_Dev { 43 interface PPB_DeviceRef_Dev {
43 /** 44 /**
44 * Determines if the provided resource is a device reference. 45 * Determines if the provided resource is a device reference.
45 * 46 *
46 * @param[in] resource A <code>PP_Resource</code> corresponding to a generic 47 * @param[in] resource A <code>PP_Resource</code> corresponding to a generic
47 * resource. 48 * resource.
48 * 49 *
49 * @return A <code>PP_Bool</code> that is <code>PP_TRUE</code> if the given 50 * @return A <code>PP_Bool</code> that is <code>PP_TRUE</code> if the given
(...skipping 17 matching lines...) Expand all
67 * 68 *
68 * @param[in] device_ref A <code>PP_Resource</code> corresponding to a device 69 * @param[in] device_ref A <code>PP_Resource</code> corresponding to a device
69 * reference. 70 * reference.
70 * 71 *
71 * @return A <code>PP_Var</code> of type <code>PP_VARTYPE_STRING</code> 72 * @return A <code>PP_Var</code> of type <code>PP_VARTYPE_STRING</code>
72 * containing the name of the device if successful; a <code>PP_Var</code> of 73 * containing the name of the device if successful; a <code>PP_Var</code> of
73 * type <code>PP_VARTYPE_UNDEFINED</code> if failed. 74 * type <code>PP_VARTYPE_UNDEFINED</code> if failed.
74 */ 75 */
75 PP_Var GetName([in] PP_Resource device_ref); 76 PP_Var GetName([in] PP_Resource device_ref);
76 }; 77 };
OLDNEW
« no previous file with comments | « ppapi/api/dev/ppb_audio_output_dev.idl ('k') | ppapi/c/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698