|
Implement plugin side of sync EnumerateVideoCaptureDevices
This implements the plugin side of PPB_Flash::EnumerateVideoCaptureDevices which is a synchronous version of PPB_VideoCapture::EnumerateVideoDevices. The result is output into a PP_ArrayOutput. This also adds a unittest which does some basic testing of the messages sent, but mainly demonstrates how to write PluginResource unittests when dealing with sync messages (and adds some infrastructure to make it easy to do this).
Once VideoCapture is implemented as a new-style resource, the code for this will simplify a lot.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161265
Total comments: 35
Total comments: 6
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+684 lines, -10 lines) |
Patch |
|
M |
ppapi/api/private/ppb_flash.idl
|
View
|
1
2
3
4
5
6
|
4 chunks |
+24 lines, -4 lines |
0 comments
|
Download
|
|
M |
ppapi/c/private/ppb_flash.h
|
View
|
1
2
3
4
5
6
|
5 chunks |
+55 lines, -4 lines |
0 comments
|
Download
|
|
M |
ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
5 chunks |
+134 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/ppapi_proxy.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/ppapi_shared.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/ppapi_tests.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
ppapi/proxy/flash_resource.h
|
View
|
1
2
3
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
|
A |
ppapi/proxy/flash_resource.cc
|
View
|
1
2
3
|
1 chunk |
+68 lines, -0 lines |
0 comments
|
Download
|
|
A |
ppapi/proxy/flash_resource_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+103 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/plugin_dispatcher.h
|
View
|
1
2
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
ppapi/proxy/plugin_dispatcher.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/ppapi_messages.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/ppb_flash_proxy.h
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/ppb_instance_proxy.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/ppb_instance_proxy.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
3 chunks |
+24 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/resource_message_test_sink.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+49 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/proxy/resource_message_test_sink.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+62 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/shared_impl/resource.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/thunk/interfaces_ppb_private_flash.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/thunk/ppb_flash_api.h
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
A |
ppapi/thunk/ppb_flash_functions_api.h
|
View
|
1
2
3
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/thunk/ppb_flash_thunk.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+43 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/thunk/ppb_instance_api.h
|
View
|
1
2
3
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
webkit/plugins/ppapi/ppapi_plugin_instance.h
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|