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

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

Issue 10824272: Add a skeleton gamepad resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 4 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 #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 "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ppapi/c/dev/pp_print_settings_dev.h" 10 #include "ppapi/c/dev/pp_print_settings_dev.h"
(...skipping 19 matching lines...) Expand all
30 struct PP_DecryptedBlockInfo; 30 struct PP_DecryptedBlockInfo;
31 31
32 namespace ppapi { 32 namespace ppapi {
33 33
34 class TrackedCallback; 34 class TrackedCallback;
35 struct ViewData; 35 struct ViewData;
36 36
37 namespace thunk { 37 namespace thunk {
38 38
39 class PPB_Flash_API; 39 class PPB_Flash_API;
40 class PPB_Gamepad_API;
40 41
41 class PPB_Instance_API { 42 class PPB_Instance_API {
42 public: 43 public:
43 virtual ~PPB_Instance_API() {} 44 virtual ~PPB_Instance_API() {}
44 45
45 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; 46 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0;
46 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; 47 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0;
47 48
48 // Not an exposed PPAPI function, this returns the internal view data struct. 49 // Not an exposed PPAPI function, this returns the internal view data struct.
49 virtual const ViewData* GetViewData(PP_Instance instance) = 0; 50 virtual const ViewData* GetViewData(PP_Instance instance) = 0;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 84
84 // Fullscreen. 85 // Fullscreen.
85 virtual PP_Bool SetFullscreen(PP_Instance instance, 86 virtual PP_Bool SetFullscreen(PP_Instance instance,
86 PP_Bool fullscreen) = 0; 87 PP_Bool fullscreen) = 0;
87 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; 88 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0;
88 89
89 // Flash. 90 // Flash.
90 virtual PPB_Flash_API* GetFlashAPI() = 0; 91 virtual PPB_Flash_API* GetFlashAPI() = 0;
91 92
92 // Gamepad. 93 // Gamepad.
93 virtual void SampleGamepads(PP_Instance instance, 94 virtual PPB_Gamepad_API* GetGamepadAPI(PP_Instance instance) = 0;
94 PP_GamepadsSampleData* data) = 0;
95 95
96 // InputEvent. 96 // InputEvent.
97 virtual int32_t RequestInputEvents(PP_Instance instance, 97 virtual int32_t RequestInputEvents(PP_Instance instance,
98 uint32_t event_classes) = 0; 98 uint32_t event_classes) = 0;
99 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, 99 virtual int32_t RequestFilteringInputEvents(PP_Instance instance,
100 uint32_t event_classes) = 0; 100 uint32_t event_classes) = 0;
101 virtual void ClearInputEventRequest(PP_Instance instance, 101 virtual void ClearInputEventRequest(PP_Instance instance,
102 uint32_t event_classes) = 0; 102 uint32_t event_classes) = 0;
103 virtual void ClosePendingUserGesture(PP_Instance instance, 103 virtual void ClosePendingUserGesture(PP_Instance instance,
104 PP_TimeTicks timestamp) = 0; 104 PP_TimeTicks timestamp) = 0;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 PP_URLComponents_Dev* components) = 0; 183 PP_URLComponents_Dev* components) = 0;
184 #endif // !defined(OS_NACL) 184 #endif // !defined(OS_NACL)
185 185
186 static const ApiID kApiID = API_ID_PPB_INSTANCE; 186 static const ApiID kApiID = API_ID_PPB_INSTANCE;
187 }; 187 };
188 188
189 } // namespace thunk 189 } // namespace thunk
190 } // namespace ppapi 190 } // namespace ppapi
191 191
192 #endif // PPAPI_THUNK_INSTANCE_API_H_ 192 #endif // PPAPI_THUNK_INSTANCE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698