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

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

Issue 9085027: Pepper gamepad support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove hardcoded size assert in favour of matching webkit size assert Created 8 years, 11 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
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.h ('k') | ppapi/tests/all_c_includes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.h ('k') | ppapi/tests/all_c_includes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698