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 | |
249 PP_Resource ResourceCreationProxy::CreateGraphics3D( | 241 PP_Resource ResourceCreationProxy::CreateGraphics3D( |
250 PP_Instance instance, | 242 PP_Instance instance, |
251 PP_Resource share_context, | 243 PP_Resource share_context, |
252 const int32_t* attrib_list) { | 244 const int32_t* attrib_list) { |
253 return PPB_Graphics3D_Proxy::CreateProxyResource( | 245 return PPB_Graphics3D_Proxy::CreateProxyResource( |
254 instance, share_context, attrib_list); | 246 instance, share_context, attrib_list); |
255 } | 247 } |
256 | 248 |
257 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( | 249 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( |
258 PP_Instance instance, | 250 PP_Instance instance, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 bool ResourceCreationProxy::Send(IPC::Message* msg) { | 354 bool ResourceCreationProxy::Send(IPC::Message* msg) { |
363 return dispatcher()->Send(msg); | 355 return dispatcher()->Send(msg); |
364 } | 356 } |
365 | 357 |
366 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 358 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
367 return false; | 359 return false; |
368 } | 360 } |
369 | 361 |
370 } // namespace proxy | 362 } // namespace proxy |
371 } // namespace ppapi | 363 } // namespace ppapi |
OLD | NEW |