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