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

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

Issue 10091003: Convert flash to thunk (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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_flash_thunk.cc ('k') | ppapi/thunk/thunk.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 #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_console_dev.h" 8 #include "ppapi/c/dev/ppb_console_dev.h"
9 #include "ppapi/c/dev/ppb_url_util_dev.h" 9 #include "ppapi/c/dev/ppb_url_util_dev.h"
10 #include "ppapi/c/pp_bool.h" 10 #include "ppapi/c/pp_bool.h"
(...skipping 11 matching lines...) Expand all
22 #ifdef PostMessage 22 #ifdef PostMessage
23 #undef PostMessage 23 #undef PostMessage
24 #endif 24 #endif
25 25
26 namespace ppapi { 26 namespace ppapi {
27 27
28 struct ViewData; 28 struct ViewData;
29 29
30 namespace thunk { 30 namespace thunk {
31 31
32 class PPB_Flash_API;
33
32 class PPB_Instance_FunctionAPI { 34 class PPB_Instance_FunctionAPI {
33 public: 35 public:
34 virtual ~PPB_Instance_FunctionAPI() {} 36 virtual ~PPB_Instance_FunctionAPI() {}
35 37
36 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; 38 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0;
37 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; 39 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0;
38 40
39 // Not an exposed PPAPI function, this returns the internal view data struct. 41 // Not an exposed PPAPI function, this returns the internal view data struct.
40 virtual const ViewData* GetViewData(PP_Instance instance) = 0; 42 virtual const ViewData* GetViewData(PP_Instance instance) = 0;
41 43
(...skipping 28 matching lines...) Expand all
70 int32_t index) = 0; 72 int32_t index) = 0;
71 73
72 // Font. 74 // Font.
73 virtual PP_Var GetFontFamilies(PP_Instance instance) = 0; 75 virtual PP_Var GetFontFamilies(PP_Instance instance) = 0;
74 76
75 // Fullscreen. 77 // Fullscreen.
76 virtual PP_Bool SetFullscreen(PP_Instance instance, 78 virtual PP_Bool SetFullscreen(PP_Instance instance,
77 PP_Bool fullscreen) = 0; 79 PP_Bool fullscreen) = 0;
78 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; 80 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0;
79 81
80 // FlashFullscreen. 82 // Flash.
81 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) = 0; 83 virtual PPB_Flash_API* GetFlashAPI() = 0;
82 virtual PP_Bool FlashSetFullscreen(PP_Instance instance,
83 PP_Bool fullscreen) = 0;
84 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, PP_Size* size) = 0;
85 84
86 // Gamepad. 85 // Gamepad.
87 virtual void SampleGamepads(PP_Instance instance, 86 virtual void SampleGamepads(PP_Instance instance,
88 PP_GamepadsSampleData* data) = 0; 87 PP_GamepadsSampleData* data) = 0;
89 88
90 // InputEvent. 89 // InputEvent.
91 virtual int32_t RequestInputEvents(PP_Instance instance, 90 virtual int32_t RequestInputEvents(PP_Instance instance,
92 uint32_t event_classes) = 0; 91 uint32_t event_classes) = 0;
93 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, 92 virtual int32_t RequestFilteringInputEvents(PP_Instance instance,
94 uint32_t event_classes) = 0; 93 uint32_t event_classes) = 0;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 PP_URLComponents_Dev* components) = 0; 130 PP_URLComponents_Dev* components) = 0;
132 #endif // !defined(OS_NACL) 131 #endif // !defined(OS_NACL)
133 132
134 static const ApiID kApiID = API_ID_PPB_INSTANCE; 133 static const ApiID kApiID = API_ID_PPB_INSTANCE;
135 }; 134 };
136 135
137 } // namespace thunk 136 } // namespace thunk
138 } // namespace ppapi 137 } // namespace ppapi
139 138
140 #endif // PPAPI_THUNK_INSTANCE_API_H_ 139 #endif // PPAPI_THUNK_INSTANCE_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_flash_thunk.cc ('k') | ppapi/thunk/thunk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698