| 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 "ppapi/proxy/resource_creation_proxy.h" | 5 #include "ppapi/proxy/resource_creation_proxy.h" |
| 6 | 6 |
| 7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
| 8 #include "ppapi/c/pp_size.h" | 8 #include "ppapi/c/pp_size.h" |
| 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" | 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
| 10 #include "ppapi/proxy/plugin_dispatcher.h" | 10 #include "ppapi/proxy/plugin_dispatcher.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 uint32_t modifiers, | 111 uint32_t modifiers, |
| 112 PP_InputEvent_MouseButton mouse_button, | 112 PP_InputEvent_MouseButton mouse_button, |
| 113 const PP_Point* mouse_position, | 113 const PP_Point* mouse_position, |
| 114 int32_t click_count, | 114 int32_t click_count, |
| 115 const PP_Point* mouse_movement) { | 115 const PP_Point* mouse_movement) { |
| 116 return PPB_InputEvent_Shared::CreateMouseInputEvent( | 116 return PPB_InputEvent_Shared::CreateMouseInputEvent( |
| 117 OBJECT_IS_PROXY, instance, type, time_stamp, modifiers, | 117 OBJECT_IS_PROXY, instance, type, time_stamp, modifiers, |
| 118 mouse_button, mouse_position, click_count, mouse_movement); | 118 mouse_button, mouse_position, click_count, mouse_movement); |
| 119 } | 119 } |
| 120 | 120 |
| 121 PP_Resource ResourceCreationProxy::CreateTouchInputEvent( |
| 122 PP_Instance instance, |
| 123 PP_InputEvent_Type type, |
| 124 PP_TimeTicks time_stamp, |
| 125 uint32_t modifiers) { |
| 126 return PPB_InputEvent_Shared::CreateTouchInputEvent( |
| 127 OBJECT_IS_PROXY, instance, type, time_stamp, modifiers); |
| 128 } |
| 129 |
| 121 PP_Resource ResourceCreationProxy::CreateResourceArray( | 130 PP_Resource ResourceCreationProxy::CreateResourceArray( |
| 122 PP_Instance instance, | 131 PP_Instance instance, |
| 123 const PP_Resource elements[], | 132 const PP_Resource elements[], |
| 124 uint32_t size) { | 133 uint32_t size) { |
| 125 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( | 134 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( |
| 126 OBJECT_IS_PROXY, instance, elements, size); | 135 OBJECT_IS_PROXY, instance, elements, size); |
| 127 return object->GetReference(); | 136 return object->GetReference(); |
| 128 } | 137 } |
| 129 | 138 |
| 130 PP_Resource ResourceCreationProxy::CreateURLLoader(PP_Instance instance) { | 139 PP_Resource ResourceCreationProxy::CreateURLLoader(PP_Instance instance) { |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 bool ResourceCreationProxy::Send(IPC::Message* msg) { | 349 bool ResourceCreationProxy::Send(IPC::Message* msg) { |
| 341 return dispatcher()->Send(msg); | 350 return dispatcher()->Send(msg); |
| 342 } | 351 } |
| 343 | 352 |
| 344 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 353 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 345 return false; | 354 return false; |
| 346 } | 355 } |
| 347 | 356 |
| 348 } // namespace proxy | 357 } // namespace proxy |
| 349 } // namespace ppapi | 358 } // namespace ppapi |
| OLD | NEW |