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

Side by Side Diff: ppapi/thunk/ppb_instance_api.h

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/thunk/ppb_gamepad_thunk.cc ('k') | webkit/plugins/ppapi/mock_plugin_delegate.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) 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 #ifndef PPAPI_THUNK_INSTANCE_API_H_ 5 #ifndef PPAPI_THUNK_INSTANCE_API_H_
6 #define PPAPI_THUNK_INSTANCE_API_H_ 6 #define PPAPI_THUNK_INSTANCE_API_H_
7 7
8 #include "ppapi/c/dev/ppb_gamepad_dev.h"
8 #include "ppapi/c/dev/ppb_url_util_dev.h" 9 #include "ppapi/c/dev/ppb_url_util_dev.h"
9 #include "ppapi/c/pp_completion_callback.h" 10 #include "ppapi/c/pp_completion_callback.h"
10 #include "ppapi/c/ppb_instance.h" 11 #include "ppapi/c/ppb_instance.h"
11 #include "ppapi/c/pp_bool.h" 12 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_size.h" 13 #include "ppapi/c/pp_size.h"
13 #include "ppapi/c/private/ppb_instance_private.h" 14 #include "ppapi/c/private/ppb_instance_private.h"
14 #include "ppapi/shared_impl/api_id.h" 15 #include "ppapi/shared_impl/api_id.h"
15 16
16 // Windows headers interfere with this file. 17 // Windows headers interfere with this file.
17 #ifdef PostMessage 18 #ifdef PostMessage
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual PP_Bool SetFullscreen(PP_Instance instance, 65 virtual PP_Bool SetFullscreen(PP_Instance instance,
65 PP_Bool fullscreen) = 0; 66 PP_Bool fullscreen) = 0;
66 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; 67 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0;
67 68
68 // FlashFullscreen. 69 // FlashFullscreen.
69 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) = 0; 70 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) = 0;
70 virtual PP_Bool FlashSetFullscreen(PP_Instance instance, 71 virtual PP_Bool FlashSetFullscreen(PP_Instance instance,
71 PP_Bool fullscreen) = 0; 72 PP_Bool fullscreen) = 0;
72 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, PP_Size* size) = 0; 73 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, PP_Size* size) = 0;
73 74
75 // Gamepad.
76 virtual void SampleGamepads(PP_Instance instance,
77 PP_GamepadsData_Dev* data) = 0;
78
74 // InputEvent. 79 // InputEvent.
75 virtual int32_t RequestInputEvents(PP_Instance instance, 80 virtual int32_t RequestInputEvents(PP_Instance instance,
76 uint32_t event_classes) = 0; 81 uint32_t event_classes) = 0;
77 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, 82 virtual int32_t RequestFilteringInputEvents(PP_Instance instance,
78 uint32_t event_classes) = 0; 83 uint32_t event_classes) = 0;
79 virtual void ClearInputEventRequest(PP_Instance instance, 84 virtual void ClearInputEventRequest(PP_Instance instance,
80 uint32_t event_classes) = 0; 85 uint32_t event_classes) = 0;
81 86
82 // Messaging. 87 // Messaging.
83 virtual void PostMessage(PP_Instance instance, PP_Var message) = 0; 88 virtual void PostMessage(PP_Instance instance, PP_Var message) = 0;
(...skipping 22 matching lines...) Expand all
106 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, 111 virtual PP_Var GetPluginInstanceURL(PP_Instance instance,
107 PP_URLComponents_Dev* components) = 0; 112 PP_URLComponents_Dev* components) = 0;
108 113
109 static const ApiID kApiID = API_ID_PPB_INSTANCE; 114 static const ApiID kApiID = API_ID_PPB_INSTANCE;
110 }; 115 };
111 116
112 } // namespace thunk 117 } // namespace thunk
113 } // namespace ppapi 118 } // namespace ppapi
114 119
115 #endif // PPAPI_THUNK_INSTANCE_API_H_ 120 #endif // PPAPI_THUNK_INSTANCE_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_gamepad_thunk.cc ('k') | webkit/plugins/ppapi/mock_plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698