Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(826)

Side by Side Diff: ppapi/proxy/ppb_instance_proxy.cc

Issue 9405033: Revise gamepad interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698