| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_instance.h" | 9 #include "ppapi/c/ppb_instance.h" | 
| 10 #include "ppapi/c/ppb_messaging.h" | 10 #include "ppapi/c/ppb_messaging.h" | 
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 260 } | 260 } | 
| 261 | 261 | 
| 262 PP_Bool PPB_Instance_Proxy::FlashGetScreenSize(PP_Instance instance, | 262 PP_Bool PPB_Instance_Proxy::FlashGetScreenSize(PP_Instance instance, | 
| 263                                                PP_Size* size) { | 263                                                PP_Size* size) { | 
| 264   PP_Bool result = PP_FALSE; | 264   PP_Bool result = PP_FALSE; | 
| 265   dispatcher()->Send(new PpapiHostMsg_PPBInstance_FlashGetScreenSize( | 265   dispatcher()->Send(new PpapiHostMsg_PPBInstance_FlashGetScreenSize( | 
| 266       API_ID_PPB_INSTANCE, instance, &result, size)); | 266       API_ID_PPB_INSTANCE, instance, &result, size)); | 
| 267   return result; | 267   return result; | 
| 268 } | 268 } | 
| 269 | 269 | 
|  | 270 void PPB_Instance_Proxy::SampleGamepads(PP_Instance instance, | 
|  | 271                                         PP_GamepadsData_Dev* data) { | 
|  | 272   NOTIMPLEMENTED(); | 
|  | 273 } | 
|  | 274 | 
| 270 int32_t PPB_Instance_Proxy::RequestInputEvents(PP_Instance instance, | 275 int32_t PPB_Instance_Proxy::RequestInputEvents(PP_Instance instance, | 
| 271                                                uint32_t event_classes) { | 276                                                uint32_t event_classes) { | 
| 272   dispatcher()->Send(new PpapiHostMsg_PPBInstance_RequestInputEvents( | 277   dispatcher()->Send(new PpapiHostMsg_PPBInstance_RequestInputEvents( | 
| 273       API_ID_PPB_INSTANCE, instance, false, event_classes)); | 278       API_ID_PPB_INSTANCE, instance, false, event_classes)); | 
| 274 | 279 | 
| 275   // We always register for the classes we can handle, this function validates | 280   // We always register for the classes we can handle, this function validates | 
| 276   // the flags so we can notify it if anything was invalid, without requiring | 281   // the flags so we can notify it if anything was invalid, without requiring | 
| 277   // a sync reply. | 282   // a sync reply. | 
| 278   return ValidateRequestInputEvents(false, event_classes); | 283   return ValidateRequestInputEvents(false, event_classes); | 
| 279 } | 284 } | 
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 615 } | 620 } | 
| 616 | 621 | 
| 617 void PPB_Instance_Proxy::MouseLockCompleteInHost(int32_t result, | 622 void PPB_Instance_Proxy::MouseLockCompleteInHost(int32_t result, | 
| 618                                                  PP_Instance instance) { | 623                                                  PP_Instance instance) { | 
| 619   dispatcher()->Send(new PpapiMsg_PPBInstance_MouseLockComplete( | 624   dispatcher()->Send(new PpapiMsg_PPBInstance_MouseLockComplete( | 
| 620       API_ID_PPB_INSTANCE, instance, result)); | 625       API_ID_PPB_INSTANCE, instance, result)); | 
| 621 } | 626 } | 
| 622 | 627 | 
| 623 }  // namespace proxy | 628 }  // namespace proxy | 
| 624 }  // namespace ppapi | 629 }  // namespace ppapi | 
| OLD | NEW | 
|---|