| 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/ppb_instance_proxy.h" | 5 #include "ppapi/proxy/ppb_instance_proxy.h" |
| 6 | 6 |
| 7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
| 8 #include "ppapi/c/pp_var.h" | 8 #include "ppapi/c/pp_var.h" |
| 9 #include "ppapi/c/ppb_audio_config.h" | 9 #include "ppapi/c/ppb_audio_config.h" |
| 10 #include "ppapi/c/ppb_instance.h" | 10 #include "ppapi/c/ppb_instance.h" |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 | 281 |
| 282 PP_Bool PPB_Instance_Proxy::FlashGetScreenSize(PP_Instance instance, | 282 PP_Bool PPB_Instance_Proxy::FlashGetScreenSize(PP_Instance instance, |
| 283 PP_Size* size) { | 283 PP_Size* size) { |
| 284 PP_Bool result = PP_FALSE; | 284 PP_Bool result = PP_FALSE; |
| 285 dispatcher()->Send(new PpapiHostMsg_PPBInstance_FlashGetScreenSize( | 285 dispatcher()->Send(new PpapiHostMsg_PPBInstance_FlashGetScreenSize( |
| 286 API_ID_PPB_INSTANCE, instance, &result, size)); | 286 API_ID_PPB_INSTANCE, instance, &result, size)); |
| 287 return result; | 287 return result; |
| 288 } | 288 } |
| 289 | 289 |
| 290 void PPB_Instance_Proxy::SampleGamepads(PP_Instance instance, | 290 void PPB_Instance_Proxy::SampleGamepads(PP_Instance instance, |
| 291 PP_GamepadsData_Dev* data) { | 291 PP_GamepadsSampleData_Dev* data) { |
| 292 NOTIMPLEMENTED(); | 292 NOTIMPLEMENTED(); |
| 293 } | 293 } |
| 294 | 294 |
| 295 int32_t PPB_Instance_Proxy::RequestInputEvents(PP_Instance instance, | 295 int32_t PPB_Instance_Proxy::RequestInputEvents(PP_Instance instance, |
| 296 uint32_t event_classes) { | 296 uint32_t event_classes) { |
| 297 dispatcher()->Send(new PpapiHostMsg_PPBInstance_RequestInputEvents( | 297 dispatcher()->Send(new PpapiHostMsg_PPBInstance_RequestInputEvents( |
| 298 API_ID_PPB_INSTANCE, instance, false, event_classes)); | 298 API_ID_PPB_INSTANCE, instance, false, event_classes)); |
| 299 | 299 |
| 300 // We always register for the classes we can handle, this function validates | 300 // We always register for the classes we can handle, this function validates |
| 301 // the flags so we can notify it if anything was invalid, without requiring | 301 // the flags so we can notify it if anything was invalid, without requiring |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 } | 634 } |
| 635 | 635 |
| 636 void PPB_Instance_Proxy::MouseLockCompleteInHost(int32_t result, | 636 void PPB_Instance_Proxy::MouseLockCompleteInHost(int32_t result, |
| 637 PP_Instance instance) { | 637 PP_Instance instance) { |
| 638 dispatcher()->Send(new PpapiMsg_PPBInstance_MouseLockComplete( | 638 dispatcher()->Send(new PpapiMsg_PPBInstance_MouseLockComplete( |
| 639 API_ID_PPB_INSTANCE, instance, result)); | 639 API_ID_PPB_INSTANCE, instance, result)); |
| 640 } | 640 } |
| 641 | 641 |
| 642 } // namespace proxy | 642 } // namespace proxy |
| 643 } // namespace ppapi | 643 } // namespace ppapi |
| OLD | NEW |