| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 data.event_modifiers = modifiers; | 237 data.event_modifiers = modifiers; |
| 238 data.mouse_button = mouse_button; | 238 data.mouse_button = mouse_button; |
| 239 data.mouse_position = *mouse_position; | 239 data.mouse_position = *mouse_position; |
| 240 data.mouse_click_count = click_count; | 240 data.mouse_click_count = click_count; |
| 241 data.mouse_movement = *mouse_movement; | 241 data.mouse_movement = *mouse_movement; |
| 242 | 242 |
| 243 return (new PPB_InputEvent_Shared(::ppapi::OBJECT_IS_IMPL, | 243 return (new PPB_InputEvent_Shared(::ppapi::OBJECT_IS_IMPL, |
| 244 instance, data))->GetReference(); | 244 instance, data))->GetReference(); |
| 245 } | 245 } |
| 246 | 246 |
| 247 PP_Resource ResourceCreationImpl::CreateNetworkMonitor( |
| 248 PP_Instance instance, |
| 249 PPB_NetworkMonitor_Callback callback, |
| 250 void* user_data) { |
| 251 NOTIMPLEMENTED(); |
| 252 return 0; |
| 253 } |
| 254 |
| 247 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, | 255 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, |
| 248 PP_Bool vertical) { | 256 PP_Bool vertical) { |
| 249 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical)); | 257 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical)); |
| 250 } | 258 } |
| 251 | 259 |
| 252 PP_Resource ResourceCreationImpl::CreateResourceArray( | 260 PP_Resource ResourceCreationImpl::CreateResourceArray( |
| 253 PP_Instance instance, | 261 PP_Instance instance, |
| 254 const PP_Resource elements[], | 262 const PP_Resource elements[], |
| 255 uint32_t size) { | 263 uint32_t size) { |
| 256 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( | 264 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 data.wheel_delta = *wheel_delta; | 337 data.wheel_delta = *wheel_delta; |
| 330 data.wheel_ticks = *wheel_ticks; | 338 data.wheel_ticks = *wheel_ticks; |
| 331 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); | 339 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); |
| 332 | 340 |
| 333 return (new PPB_InputEvent_Shared(::ppapi::OBJECT_IS_IMPL, | 341 return (new PPB_InputEvent_Shared(::ppapi::OBJECT_IS_IMPL, |
| 334 instance, data))->GetReference(); | 342 instance, data))->GetReference(); |
| 335 } | 343 } |
| 336 | 344 |
| 337 } // namespace ppapi | 345 } // namespace ppapi |
| 338 } // namespace webkit | 346 } // namespace webkit |
| OLD | NEW |