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/ppb_input_event_shared.h" | 9 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
10 #include "ppapi/shared_impl/ppb_resource_array_shared.h" | 10 #include "ppapi/shared_impl/ppb_resource_array_shared.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 uint32_t modifiers, | 185 uint32_t modifiers, |
186 PP_InputEvent_MouseButton mouse_button, | 186 PP_InputEvent_MouseButton mouse_button, |
187 const PP_Point* mouse_position, | 187 const PP_Point* mouse_position, |
188 int32_t click_count, | 188 int32_t click_count, |
189 const PP_Point* mouse_movement) { | 189 const PP_Point* mouse_movement) { |
190 return PPB_InputEvent_Shared::CreateMouseInputEvent( | 190 return PPB_InputEvent_Shared::CreateMouseInputEvent( |
191 ::ppapi::OBJECT_IS_IMPL, instance, type, time_stamp, modifiers, | 191 ::ppapi::OBJECT_IS_IMPL, instance, type, time_stamp, modifiers, |
192 mouse_button, mouse_position, click_count, mouse_movement); | 192 mouse_button, mouse_position, click_count, mouse_movement); |
193 } | 193 } |
194 | 194 |
| 195 PP_Resource ResourceCreationImpl::CreateNetAddressFromIPv4Address( |
| 196 PP_Instance instance, |
| 197 const PP_NetAddress_IPv4_Dev* ipv4_addr) { |
| 198 return 0; // Not supported in-process. |
| 199 } |
| 200 |
| 201 PP_Resource ResourceCreationImpl::CreateNetAddressFromIPv6Address( |
| 202 PP_Instance instance, |
| 203 const PP_NetAddress_IPv6_Dev* ipv6_addr) { |
| 204 return 0; // Not supported in-process. |
| 205 } |
| 206 |
195 PP_Resource ResourceCreationImpl::CreateTouchInputEvent( | 207 PP_Resource ResourceCreationImpl::CreateTouchInputEvent( |
196 PP_Instance instance, | 208 PP_Instance instance, |
197 PP_InputEvent_Type type, | 209 PP_InputEvent_Type type, |
198 PP_TimeTicks time_stamp, | 210 PP_TimeTicks time_stamp, |
199 uint32_t modifiers) { | 211 uint32_t modifiers) { |
200 return PPB_InputEvent_Shared::CreateTouchInputEvent( | 212 return PPB_InputEvent_Shared::CreateTouchInputEvent( |
201 ::ppapi::OBJECT_IS_IMPL, instance, type, time_stamp, modifiers); | 213 ::ppapi::OBJECT_IS_IMPL, instance, type, time_stamp, modifiers); |
202 } | 214 } |
203 | 215 |
204 PP_Resource ResourceCreationImpl::CreateNetworkMonitor( | 216 PP_Resource ResourceCreationImpl::CreateNetworkMonitor( |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 wheel_delta, wheel_ticks, scroll_by_page); | 284 wheel_delta, wheel_ticks, scroll_by_page); |
273 } | 285 } |
274 | 286 |
275 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 287 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
276 PP_Instance instance) { | 288 PP_Instance instance) { |
277 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 289 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
278 } | 290 } |
279 | 291 |
280 } // namespace ppapi | 292 } // namespace ppapi |
281 } // namespace webkit | 293 } // namespace webkit |
OLD | NEW |