| 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 18 matching lines...) Expand all Loading... |
| 29 struct PP_DecryptedBlockInfo; | 29 struct PP_DecryptedBlockInfo; |
| 30 | 30 |
| 31 namespace ppapi { | 31 namespace ppapi { |
| 32 | 32 |
| 33 class TrackedCallback; | 33 class TrackedCallback; |
| 34 struct ViewData; | 34 struct ViewData; |
| 35 | 35 |
| 36 namespace thunk { | 36 namespace thunk { |
| 37 | 37 |
| 38 class PPB_Flash_API; | 38 class PPB_Flash_API; |
| 39 class PPB_Flash_Functions_API; |
| 39 class PPB_Gamepad_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. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 79 int32_t index) = 0; | 80 int32_t index) = 0; |
| 80 | 81 |
| 81 // Font. | 82 // Font. |
| 82 virtual PP_Var GetFontFamilies(PP_Instance instance) = 0; | 83 virtual PP_Var GetFontFamilies(PP_Instance instance) = 0; |
| 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 (Deprecated for Flash_Functions). |
| 90 virtual PPB_Flash_API* GetFlashAPI() = 0; | 91 virtual PPB_Flash_API* GetFlashAPI() = 0; |
| 92 // Flash_Functions |
| 93 virtual PPB_Flash_Functions_API* GetFlashFunctionsAPI( |
| 94 PP_Instance instance) = 0; |
| 91 | 95 |
| 92 // Gamepad. | 96 // Gamepad. |
| 93 virtual PPB_Gamepad_API* GetGamepadAPI(PP_Instance instance) = 0; | 97 virtual PPB_Gamepad_API* GetGamepadAPI(PP_Instance instance) = 0; |
| 94 | 98 |
| 95 // InputEvent. | 99 // InputEvent. |
| 96 virtual int32_t RequestInputEvents(PP_Instance instance, | 100 virtual int32_t RequestInputEvents(PP_Instance instance, |
| 97 uint32_t event_classes) = 0; | 101 uint32_t event_classes) = 0; |
| 98 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, | 102 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, |
| 99 uint32_t event_classes) = 0; | 103 uint32_t event_classes) = 0; |
| 100 virtual void ClearInputEventRequest(PP_Instance instance, | 104 virtual void ClearInputEventRequest(PP_Instance instance, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 PP_URLComponents_Dev* components) = 0; | 181 PP_URLComponents_Dev* components) = 0; |
| 178 #endif // !defined(OS_NACL) | 182 #endif // !defined(OS_NACL) |
| 179 | 183 |
| 180 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 184 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
| 181 }; | 185 }; |
| 182 | 186 |
| 183 } // namespace thunk | 187 } // namespace thunk |
| 184 } // namespace ppapi | 188 } // namespace ppapi |
| 185 | 189 |
| 186 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 190 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
| OLD | NEW |