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

Side by Side Diff: webkit/plugins/ppapi/resource_creation_impl.cc

Issue 11274036: Refactor video capture to new design (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 (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 #include "webkit/plugins/ppapi/resource_creation_impl.h" 5 #include "webkit/plugins/ppapi/resource_creation_impl.h"
6 6
7 #include "ppapi/c/pp_size.h" 7 #include "ppapi/c/pp_size.h"
8 #include "ppapi/shared_impl/ppb_audio_config_shared.h" 8 #include "ppapi/shared_impl/ppb_audio_config_shared.h"
9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" 9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h"
10 #include "ppapi/shared_impl/ppb_input_event_shared.h" 10 #include "ppapi/shared_impl/ppb_input_event_shared.h"
(...skipping 12 matching lines...) Expand all
23 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" 23 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h"
24 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" 24 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h"
25 #include "webkit/plugins/ppapi/ppb_host_resolver_private_impl.h" 25 #include "webkit/plugins/ppapi/ppb_host_resolver_private_impl.h"
26 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" 26 #include "webkit/plugins/ppapi/ppb_image_data_impl.h"
27 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" 27 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h"
28 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" 28 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h"
29 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" 29 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h"
30 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" 30 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h"
31 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h" 31 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h"
32 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" 32 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h"
33 #include "webkit/plugins/ppapi/ppb_video_capture_impl.h"
34 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" 33 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h"
35 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h" 34 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h"
36 #include "webkit/plugins/ppapi/resource_helper.h" 35 #include "webkit/plugins/ppapi/resource_helper.h"
37 36
38 using ppapi::InputEventData; 37 using ppapi::InputEventData;
39 using ppapi::PPB_InputEvent_Shared; 38 using ppapi::PPB_InputEvent_Shared;
40 using ppapi::PPB_ResourceArray_Shared; 39 using ppapi::PPB_ResourceArray_Shared;
41 using ppapi::StringVar; 40 using ppapi::StringVar;
42 41
43 namespace webkit { 42 namespace webkit {
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 265
267 PP_Resource ResourceCreationImpl::CreateUDPSocketPrivate(PP_Instance instance) { 266 PP_Resource ResourceCreationImpl::CreateUDPSocketPrivate(PP_Instance instance) {
268 return PPB_UDPSocket_Private_Impl::CreateResource(instance); 267 return PPB_UDPSocket_Private_Impl::CreateResource(instance);
269 } 268 }
270 269
271 PP_Resource ResourceCreationImpl::CreateURLLoader(PP_Instance instance) { 270 PP_Resource ResourceCreationImpl::CreateURLLoader(PP_Instance instance) {
272 return (new PPB_URLLoader_Impl(instance, false))->GetReference(); 271 return (new PPB_URLLoader_Impl(instance, false))->GetReference();
273 } 272 }
274 273
275 PP_Resource ResourceCreationImpl::CreateVideoCapture(PP_Instance instance) { 274 PP_Resource ResourceCreationImpl::CreateVideoCapture(PP_Instance instance) {
276 scoped_refptr<PPB_VideoCapture_Impl> video_capture = 275 return 0; // VideoCapture is not supported in process now.
277 new PPB_VideoCapture_Impl(instance);
278 if (!video_capture->Init())
279 return 0;
280 return video_capture->GetReference();
281 } 276 }
282 277
283 PP_Resource ResourceCreationImpl::CreateVideoDecoder( 278 PP_Resource ResourceCreationImpl::CreateVideoDecoder(
284 PP_Instance instance, 279 PP_Instance instance,
285 PP_Resource graphics3d_id, 280 PP_Resource graphics3d_id,
286 PP_VideoDecoder_Profile profile) { 281 PP_VideoDecoder_Profile profile) {
287 return PPB_VideoDecoder_Impl::Create(instance, graphics3d_id, profile); 282 return PPB_VideoDecoder_Impl::Create(instance, graphics3d_id, profile);
288 } 283 }
289 284
290 PP_Resource ResourceCreationImpl::CreateWheelInputEvent( 285 PP_Resource ResourceCreationImpl::CreateWheelInputEvent(
291 PP_Instance instance, 286 PP_Instance instance,
292 PP_TimeTicks time_stamp, 287 PP_TimeTicks time_stamp,
293 uint32_t modifiers, 288 uint32_t modifiers,
294 const PP_FloatPoint* wheel_delta, 289 const PP_FloatPoint* wheel_delta,
295 const PP_FloatPoint* wheel_ticks, 290 const PP_FloatPoint* wheel_ticks,
296 PP_Bool scroll_by_page) { 291 PP_Bool scroll_by_page) {
297 return PPB_InputEvent_Shared::CreateWheelInputEvent( 292 return PPB_InputEvent_Shared::CreateWheelInputEvent(
298 ::ppapi::OBJECT_IS_IMPL, instance, time_stamp, modifiers, 293 ::ppapi::OBJECT_IS_IMPL, instance, time_stamp, modifiers,
299 wheel_delta, wheel_ticks, scroll_by_page); 294 wheel_delta, wheel_ticks, scroll_by_page);
300 } 295 }
301 296
302 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( 297 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate(
303 PP_Instance instance) { 298 PP_Instance instance) {
304 return PPB_X509Certificate_Private_Impl::CreateResource(instance); 299 return PPB_X509Certificate_Private_Impl::CreateResource(instance);
305 } 300 }
306 301
307 } // namespace ppapi 302 } // namespace ppapi
308 } // namespace webkit 303 } // namespace webkit
OLDNEW
« ppapi/proxy/video_capture_resource.cc ('K') | « webkit/plugins/ppapi/ppb_video_capture_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698