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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 data.event_modifiers = modifiers; | 229 data.event_modifiers = modifiers; |
230 data.mouse_button = mouse_button; | 230 data.mouse_button = mouse_button; |
231 data.mouse_position = *mouse_position; | 231 data.mouse_position = *mouse_position; |
232 data.mouse_click_count = click_count; | 232 data.mouse_click_count = click_count; |
233 data.mouse_movement = *mouse_movement; | 233 data.mouse_movement = *mouse_movement; |
234 | 234 |
235 return (new PPB_InputEvent_Shared(OBJECT_IS_PROXY, | 235 return (new PPB_InputEvent_Shared(OBJECT_IS_PROXY, |
236 instance, data))->GetReference(); | 236 instance, data))->GetReference(); |
237 } | 237 } |
238 | 238 |
| 239 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( |
| 240 PP_Instance instance, |
| 241 PPB_NetworkMonitor_Callback callback, |
| 242 void* user_data) { |
| 243 NOTIMPLEMENTED(); // Not proxied yet. |
| 244 return 0; |
| 245 } |
| 246 |
239 PP_Resource ResourceCreationProxy::CreateGraphics3D( | 247 PP_Resource ResourceCreationProxy::CreateGraphics3D( |
240 PP_Instance instance, | 248 PP_Instance instance, |
241 PP_Resource share_context, | 249 PP_Resource share_context, |
242 const int32_t* attrib_list) { | 250 const int32_t* attrib_list) { |
243 return PPB_Graphics3D_Proxy::CreateProxyResource( | 251 return PPB_Graphics3D_Proxy::CreateProxyResource( |
244 instance, share_context, attrib_list); | 252 instance, share_context, attrib_list); |
245 } | 253 } |
246 | 254 |
247 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( | 255 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( |
248 PP_Instance instance, | 256 PP_Instance instance, |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 bool ResourceCreationProxy::Send(IPC::Message* msg) { | 356 bool ResourceCreationProxy::Send(IPC::Message* msg) { |
349 return dispatcher()->Send(msg); | 357 return dispatcher()->Send(msg); |
350 } | 358 } |
351 | 359 |
352 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 360 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
353 return false; | 361 return false; |
354 } | 362 } |
355 | 363 |
356 } // namespace proxy | 364 } // namespace proxy |
357 } // namespace ppapi | 365 } // namespace ppapi |
OLD | NEW |