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 | |
255 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, | 247 PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance, |
256 PP_Bool vertical) { | 248 PP_Bool vertical) { |
257 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical)); | 249 return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical)); |
258 } | 250 } |
259 | 251 |
260 PP_Resource ResourceCreationImpl::CreateResourceArray( | 252 PP_Resource ResourceCreationImpl::CreateResourceArray( |
261 PP_Instance instance, | 253 PP_Instance instance, |
262 const PP_Resource elements[], | 254 const PP_Resource elements[], |
263 uint32_t size) { | 255 uint32_t size) { |
264 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( | 256 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 data.wheel_delta = *wheel_delta; | 329 data.wheel_delta = *wheel_delta; |
338 data.wheel_ticks = *wheel_ticks; | 330 data.wheel_ticks = *wheel_ticks; |
339 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); | 331 data.wheel_scroll_by_page = PP_ToBool(scroll_by_page); |
340 | 332 |
341 return (new PPB_InputEvent_Shared(::ppapi::OBJECT_IS_IMPL, | 333 return (new PPB_InputEvent_Shared(::ppapi::OBJECT_IS_IMPL, |
342 instance, data))->GetReference(); | 334 instance, data))->GetReference(); |
343 } | 335 } |
344 | 336 |
345 } // namespace ppapi | 337 } // namespace ppapi |
346 } // namespace webkit | 338 } // namespace webkit |
OLD | NEW |