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

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

Issue 7474006: PPB_VideoDecoder_Dev::Initialize is now synchronous! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: vrk CR update. Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/resource_creation_impl.h ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/input_event_impl.h" 8 #include "ppapi/shared_impl/input_event_impl.h"
9 #include "webkit/plugins/ppapi/common.h" 9 #include "webkit/plugins/ppapi/common.h"
10 #include "webkit/plugins/ppapi/ppb_audio_impl.h" 10 #include "webkit/plugins/ppapi/ppb_audio_impl.h"
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 } 276 }
277 277
278 PP_Resource ResourceCreationImpl::CreateURLLoader(PP_Instance instance) { 278 PP_Resource ResourceCreationImpl::CreateURLLoader(PP_Instance instance) {
279 return ReturnResource(new PPB_URLLoader_Impl(instance_, false)); 279 return ReturnResource(new PPB_URLLoader_Impl(instance_, false));
280 } 280 }
281 281
282 PP_Resource ResourceCreationImpl::CreateURLRequestInfo(PP_Instance instance) { 282 PP_Resource ResourceCreationImpl::CreateURLRequestInfo(PP_Instance instance) {
283 return ReturnResource(new PPB_URLRequestInfo_Impl(instance_)); 283 return ReturnResource(new PPB_URLRequestInfo_Impl(instance_));
284 } 284 }
285 285
286 PP_Resource ResourceCreationImpl::CreateVideoDecoder(PP_Instance instance) { 286 PP_Resource ResourceCreationImpl::CreateVideoDecoder(
287 return ReturnResource(new PPB_VideoDecoder_Impl(instance_)); 287 PP_Instance instance,
288 PP_Resource context3d_id,
289 const PP_VideoConfigElement* config) {
290 return PPB_VideoDecoder_Impl::Create(instance_, context3d_id, config);
288 } 291 }
289 292
290 PP_Resource ResourceCreationImpl::CreateVideoLayer(PP_Instance instance, 293 PP_Resource ResourceCreationImpl::CreateVideoLayer(PP_Instance instance,
291 PP_VideoLayerMode_Dev mode) { 294 PP_VideoLayerMode_Dev mode) {
292 return PPB_VideoLayer_Impl::Create(instance_, mode); 295 return PPB_VideoLayer_Impl::Create(instance_, mode);
293 } 296 }
294 297
295 PP_Resource ResourceCreationImpl::CreateWheelInputEvent( 298 PP_Resource ResourceCreationImpl::CreateWheelInputEvent(
296 PP_Instance instance, 299 PP_Instance instance,
297 PP_TimeTicks time_stamp, 300 PP_TimeTicks time_stamp,
298 uint32_t modifiers, 301 uint32_t modifiers,
299 const PP_FloatPoint* wheel_delta, 302 const PP_FloatPoint* wheel_delta,
300 const PP_FloatPoint* wheel_ticks, 303 const PP_FloatPoint* wheel_ticks,
301 PP_Bool scroll_by_page) { 304 PP_Bool scroll_by_page) {
302 InputEventData data; 305 InputEventData data;
303 data.event_type = PP_INPUTEVENT_TYPE_WHEEL; 306 data.event_type = PP_INPUTEVENT_TYPE_WHEEL;
304 data.event_time_stamp = time_stamp; 307 data.event_time_stamp = time_stamp;
305 data.event_modifiers = modifiers; 308 data.event_modifiers = modifiers;
306 data.wheel_delta = *wheel_delta; 309 data.wheel_delta = *wheel_delta;
307 data.wheel_ticks = *wheel_ticks; 310 data.wheel_ticks = *wheel_ticks;
308 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); 311 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page);
309 312
310 return PPB_InputEvent_Impl::Create(instance_, data); 313 return PPB_InputEvent_Impl::Create(instance_, data);
311 } 314 }
312 315
313 } // namespace ppapi 316 } // namespace ppapi
314 } // namespace webkit 317 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/resource_creation_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698