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

Issue 8981009: New Pepper interfaces for audio/video capture device enumeration. (Closed)

Created:
9 years ago by yzshen1
Modified:
8 years, 9 months ago
Reviewers:
brettw, viettrungluu
CC:
chromium-reviews, piman+watch_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

New Pepper interfaces for audio/video capture device enumeration. BUG=None TEST=None

Patch Set 1 #

Patch Set 2 : . #

Total comments: 8

Patch Set 3 : Make changes in response to Trung's suggestions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+391 lines, -14 lines) Patch
M ppapi/api/dev/ppb_audio_input_dev.idl View 1 2 2 chunks +17 lines, -1 line 0 comments Download
A ppapi/api/dev/ppb_device_enumerator_dev.idl View 1 2 1 chunk +78 lines, -0 lines 0 comments Download
A ppapi/api/dev/ppb_device_ref_dev.idl View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
M ppapi/api/dev/ppb_video_capture_dev.idl View 1 2 2 chunks +23 lines, -1 line 0 comments Download
M ppapi/c/dev/ppb_audio_input_dev.h View 1 2 4 chunks +18 lines, -2 lines 0 comments Download
A ppapi/c/dev/ppb_device_enumerator_dev.h View 1 2 1 chunk +97 lines, -0 lines 0 comments Download
A ppapi/c/dev/ppb_device_ref_dev.h View 1 2 1 chunk +81 lines, -0 lines 0 comments Download
M ppapi/c/dev/ppb_video_capture_dev.h View 1 2 4 chunks +24 lines, -10 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
yzshen1
Hi, Brett and Trung. Would you please take a look at these interface definitions? I ...
9 years ago (2011-12-17 00:58:50 UTC) #1
viettrungluu
It mostly looks like what I imagined, except for the notes below.... http://codereview.chromium.org/8981009/diff/2001/ppapi/api/dev/ppb_stream_device_enumerator_dev.idl File ppapi/api/dev/ppb_stream_device_enumerator_dev.idl ...
9 years ago (2011-12-17 01:37:02 UTC) #2
yzshen1
Thanks, Trung! http://codereview.chromium.org/8981009/diff/2001/ppapi/api/dev/ppb_stream_device_enumerator_dev.idl File ppapi/api/dev/ppb_stream_device_enumerator_dev.idl (right): http://codereview.chromium.org/8981009/diff/2001/ppapi/api/dev/ppb_stream_device_enumerator_dev.idl#newcode7 ppapi/api/dev/ppb_stream_device_enumerator_dev.idl:7: * This file defines the <code>PPB_StreamDeviceEnumerator_Dev</code> interface. ...
9 years ago (2011-12-19 19:11:54 UTC) #3
brettw
I'm curious how this will be presented in C++. In particular, how would we return ...
9 years ago (2011-12-19 22:46:38 UTC) #4
yzshen1
On 2011/12/19 22:46:38, brettw wrote: > I'm curious how this will be presented in C++. ...
9 years ago (2011-12-20 00:40:07 UTC) #5
brettw
On 2011/12/20 00:40:07, yzshen1 wrote: > On 2011/12/19 22:46:38, brettw wrote: > > I'm curious ...
9 years ago (2011-12-20 23:00:20 UTC) #6
yzshen1
9 years ago (2011-12-21 00:04:05 UTC) #7
> Vars and resources don't really interact. A var really corresponds to a JS
> variable, which is unrelated to a resource. So I don't think we would support
> Var arrays of PP_Resources. This also gets tricky with the refcounting since
the
> Var refcounting is different than the resource refcounting.

Ah, I forgot that. :) Thanks for pointing out.

> 
> For the File chooser, I think I was thinking more along the lines of your #1.
> 
> Do you think we should call it a ResourceArray instead of ResourceEnumerator?

Yes. I think that is easier to understand for users.

> 
> I just also realized that we could even skip the C++ FileRefEnumerator and
just
> return a std::vector<FileRef>. This might be easier and more obvious to use.
> Then we just need an internal helper function to convert a ResourceArray to a
> std::vector.

Yes.

> 
> Sorry, I don't want to delay this patch too much with bikeshedding. Let me
know
> if you think this is too hard. You shouldn't try converting the file chooser
in
> the same patch, either.

I would like to make the change and upload a new patch. I don't think it is too
hard.
And I will leave file chooser as it is for now.

Thanks for your suggestion!

Powered by Google App Engine
This is Rietveld 408576698