| OLD | NEW |
| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 uint32_t sample_frame_count) { | 73 uint32_t sample_frame_count) { |
| 74 return ::ppapi::PPB_AudioConfig_Shared::Create( | 74 return ::ppapi::PPB_AudioConfig_Shared::Create( |
| 75 ::ppapi::OBJECT_IS_IMPL, instance, sample_rate, sample_frame_count); | 75 ::ppapi::OBJECT_IS_IMPL, instance, sample_rate, sample_frame_count); |
| 76 } | 76 } |
| 77 | 77 |
| 78 PP_Resource ResourceCreationImpl::CreateAudioTrusted( | 78 PP_Resource ResourceCreationImpl::CreateAudioTrusted( |
| 79 PP_Instance instance) { | 79 PP_Instance instance) { |
| 80 return (new PPB_Audio_Impl(instance))->GetReference(); | 80 return (new PPB_Audio_Impl(instance))->GetReference(); |
| 81 } | 81 } |
| 82 | 82 |
| 83 PP_Resource ResourceCreationImpl::CreateAudioInput( | 83 PP_Resource ResourceCreationImpl::CreateAudioInput0_1( |
| 84 PP_Instance instance, | 84 PP_Instance instance, |
| 85 PP_Resource config_id, | 85 PP_Resource config_id, |
| 86 PPB_AudioInput_Callback audio_input_callback, | 86 PPB_AudioInput_Callback audio_input_callback, |
| 87 void* user_data) { | 87 void* user_data) { |
| 88 return PPB_AudioInput_Impl::Create(instance, config_id, | 88 return PPB_AudioInput_Impl::Create0_1(instance, config_id, |
| 89 audio_input_callback, user_data); | 89 audio_input_callback, user_data); |
| 90 } | 90 } |
| 91 | 91 |
| 92 PP_Resource ResourceCreationImpl::CreateAudioInputTrusted( | 92 PP_Resource ResourceCreationImpl::CreateAudioInput(PP_Instance instance) { |
| 93 PP_Instance instance) { | |
| 94 return (new PPB_AudioInput_Impl(instance))->GetReference(); | 93 return (new PPB_AudioInput_Impl(instance))->GetReference(); |
| 95 } | 94 } |
| 96 | 95 |
| 97 PP_Resource ResourceCreationImpl::CreateBroker(PP_Instance instance) { | 96 PP_Resource ResourceCreationImpl::CreateBroker(PP_Instance instance) { |
| 98 return (new PPB_Broker_Impl(instance))->GetReference(); | 97 return (new PPB_Broker_Impl(instance))->GetReference(); |
| 99 } | 98 } |
| 100 | 99 |
| 101 PP_Resource ResourceCreationImpl::CreateBrowserFont( | 100 PP_Resource ResourceCreationImpl::CreateBrowserFont( |
| 102 PP_Instance instance, | 101 PP_Instance instance, |
| 103 const PP_BrowserFont_Trusted_Description* description) { | 102 const PP_BrowserFont_Trusted_Description* description) { |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 data.wheel_delta = *wheel_delta; | 328 data.wheel_delta = *wheel_delta; |
| 330 data.wheel_ticks = *wheel_ticks; | 329 data.wheel_ticks = *wheel_ticks; |
| 331 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); | 330 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); |
| 332 | 331 |
| 333 return (new PPB_InputEvent_Shared(::ppapi::OBJECT_IS_IMPL, | 332 return (new PPB_InputEvent_Shared(::ppapi::OBJECT_IS_IMPL, |
| 334 instance, data))->GetReference(); | 333 instance, data))->GetReference(); |
| 335 } | 334 } |
| 336 | 335 |
| 337 } // namespace ppapi | 336 } // namespace ppapi |
| 338 } // namespace webkit | 337 } // namespace webkit |
| OLD | NEW |