| 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 21 matching lines...) Expand all Loading... |
| 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_Clipboard_API; |
| 42 class PPB_Flash_File_API; |
| 42 class PPB_Flash_Functions_API; | 43 class PPB_Flash_Functions_API; |
| 43 class PPB_Gamepad_API; | 44 class PPB_Gamepad_API; |
| 44 | 45 |
| 45 class PPB_Instance_API { | 46 class PPB_Instance_API { |
| 46 public: | 47 public: |
| 47 virtual ~PPB_Instance_API() {} | 48 virtual ~PPB_Instance_API() {} |
| 48 | 49 |
| 49 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; | 50 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; |
| 50 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; | 51 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; |
| 51 | 52 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // Flash (Deprecated for Flash_Functions). | 94 // Flash (Deprecated for Flash_Functions). |
| 94 virtual PPB_Flash_API* GetFlashAPI() = 0; | 95 virtual PPB_Flash_API* GetFlashAPI() = 0; |
| 95 // Flash_Functions | 96 // Flash_Functions |
| 96 virtual PPB_Flash_Functions_API* GetFlashFunctionsAPI( | 97 virtual PPB_Flash_Functions_API* GetFlashFunctionsAPI( |
| 97 PP_Instance instance) = 0; | 98 PP_Instance instance) = 0; |
| 98 | 99 |
| 99 // Flash_Clipboard. | 100 // Flash_Clipboard. |
| 100 virtual PPB_Flash_Clipboard_API* GetFlashClipboardAPI( | 101 virtual PPB_Flash_Clipboard_API* GetFlashClipboardAPI( |
| 101 PP_Instance instance) = 0; | 102 PP_Instance instance) = 0; |
| 102 | 103 |
| 104 // Flash_File. |
| 105 virtual PPB_Flash_File_API* GetFlashFileAPI(PP_Instance instance) = 0; |
| 106 |
| 103 // Gamepad. | 107 // Gamepad. |
| 104 virtual PPB_Gamepad_API* GetGamepadAPI(PP_Instance instance) = 0; | 108 virtual PPB_Gamepad_API* GetGamepadAPI(PP_Instance instance) = 0; |
| 105 | 109 |
| 106 // InputEvent. | 110 // InputEvent. |
| 107 virtual int32_t RequestInputEvents(PP_Instance instance, | 111 virtual int32_t RequestInputEvents(PP_Instance instance, |
| 108 uint32_t event_classes) = 0; | 112 uint32_t event_classes) = 0; |
| 109 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, | 113 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, |
| 110 uint32_t event_classes) = 0; | 114 uint32_t event_classes) = 0; |
| 111 virtual void ClearInputEventRequest(PP_Instance instance, | 115 virtual void ClearInputEventRequest(PP_Instance instance, |
| 112 uint32_t event_classes) = 0; | 116 uint32_t event_classes) = 0; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 PP_URLComponents_Dev* components) = 0; | 203 PP_URLComponents_Dev* components) = 0; |
| 200 #endif // !defined(OS_NACL) | 204 #endif // !defined(OS_NACL) |
| 201 | 205 |
| 202 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 206 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
| 203 }; | 207 }; |
| 204 | 208 |
| 205 } // namespace thunk | 209 } // namespace thunk |
| 206 } // namespace ppapi | 210 } // namespace ppapi |
| 207 | 211 |
| 208 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 212 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
| OLD | NEW |