OLD | NEW |
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/ppb_console_dev.h" | 10 #include "ppapi/c/dev/ppb_console_dev.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 struct PP_DecryptedFrameInfo; | 31 struct PP_DecryptedFrameInfo; |
32 | 32 |
33 namespace ppapi { | 33 namespace ppapi { |
34 | 34 |
35 class TrackedCallback; | 35 class TrackedCallback; |
36 struct ViewData; | 36 struct ViewData; |
37 | 37 |
38 namespace thunk { | 38 namespace thunk { |
39 | 39 |
40 class PPB_Flash_API; | 40 class PPB_Flash_API; |
| 41 class PPB_Flash_Clipboard_API; |
41 class PPB_Flash_Functions_API; | 42 class PPB_Flash_Functions_API; |
42 class PPB_Gamepad_API; | 43 class PPB_Gamepad_API; |
43 | 44 |
44 class PPB_Instance_API { | 45 class PPB_Instance_API { |
45 public: | 46 public: |
46 virtual ~PPB_Instance_API() {} | 47 virtual ~PPB_Instance_API() {} |
47 | 48 |
48 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; | 49 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; |
49 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; | 50 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; |
50 | 51 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 virtual PP_Bool SetFullscreen(PP_Instance instance, | 89 virtual PP_Bool SetFullscreen(PP_Instance instance, |
89 PP_Bool fullscreen) = 0; | 90 PP_Bool fullscreen) = 0; |
90 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; | 91 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; |
91 | 92 |
92 // Flash (Deprecated for Flash_Functions). | 93 // Flash (Deprecated for Flash_Functions). |
93 virtual PPB_Flash_API* GetFlashAPI() = 0; | 94 virtual PPB_Flash_API* GetFlashAPI() = 0; |
94 // Flash_Functions | 95 // Flash_Functions |
95 virtual PPB_Flash_Functions_API* GetFlashFunctionsAPI( | 96 virtual PPB_Flash_Functions_API* GetFlashFunctionsAPI( |
96 PP_Instance instance) = 0; | 97 PP_Instance instance) = 0; |
97 | 98 |
| 99 // Flash_Clipboard. |
| 100 virtual PPB_Flash_Clipboard_API* GetFlashClipboardAPI( |
| 101 PP_Instance instance) = 0; |
| 102 |
98 // Gamepad. | 103 // Gamepad. |
99 virtual PPB_Gamepad_API* GetGamepadAPI(PP_Instance instance) = 0; | 104 virtual PPB_Gamepad_API* GetGamepadAPI(PP_Instance instance) = 0; |
100 | 105 |
101 // InputEvent. | 106 // InputEvent. |
102 virtual int32_t RequestInputEvents(PP_Instance instance, | 107 virtual int32_t RequestInputEvents(PP_Instance instance, |
103 uint32_t event_classes) = 0; | 108 uint32_t event_classes) = 0; |
104 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, | 109 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, |
105 uint32_t event_classes) = 0; | 110 uint32_t event_classes) = 0; |
106 virtual void ClearInputEventRequest(PP_Instance instance, | 111 virtual void ClearInputEventRequest(PP_Instance instance, |
107 uint32_t event_classes) = 0; | 112 uint32_t event_classes) = 0; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 PP_URLComponents_Dev* components) = 0; | 199 PP_URLComponents_Dev* components) = 0; |
195 #endif // !defined(OS_NACL) | 200 #endif // !defined(OS_NACL) |
196 | 201 |
197 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 202 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
198 }; | 203 }; |
199 | 204 |
200 } // namespace thunk | 205 } // namespace thunk |
201 } // namespace ppapi | 206 } // namespace ppapi |
202 | 207 |
203 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 208 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |