| 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 19 matching lines...) Expand all Loading... |
| 30 struct PP_DecryptedFrameInfo; | 30 struct PP_DecryptedFrameInfo; |
| 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_Flash_Functions_API; |
| 40 class PPB_Gamepad_API; | 41 class PPB_Gamepad_API; |
| 41 | 42 |
| 42 class PPB_Instance_API { | 43 class PPB_Instance_API { |
| 43 public: | 44 public: |
| 44 virtual ~PPB_Instance_API() {} | 45 virtual ~PPB_Instance_API() {} |
| 45 | 46 |
| 46 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; | 47 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; |
| 47 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; | 48 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; |
| 48 | 49 |
| 49 // Not an exposed PPAPI function, this returns the internal view data struct. | 50 // Not an exposed PPAPI function, this returns the internal view data struct. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 80 int32_t index) = 0; | 81 int32_t index) = 0; |
| 81 | 82 |
| 82 // Font. | 83 // Font. |
| 83 virtual PP_Var GetFontFamilies(PP_Instance instance) = 0; | 84 virtual PP_Var GetFontFamilies(PP_Instance instance) = 0; |
| 84 | 85 |
| 85 // Fullscreen. | 86 // Fullscreen. |
| 86 virtual PP_Bool SetFullscreen(PP_Instance instance, | 87 virtual PP_Bool SetFullscreen(PP_Instance instance, |
| 87 PP_Bool fullscreen) = 0; | 88 PP_Bool fullscreen) = 0; |
| 88 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; | 89 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; |
| 89 | 90 |
| 90 // Flash. | 91 // Flash (Deprecated for Flash_Functions). |
| 91 virtual PPB_Flash_API* GetFlashAPI() = 0; | 92 virtual PPB_Flash_API* GetFlashAPI() = 0; |
| 93 // Flash_Functions |
| 94 virtual PPB_Flash_Functions_API* GetFlashFunctionsAPI( |
| 95 PP_Instance instance) = 0; |
| 92 | 96 |
| 93 // Gamepad. | 97 // Gamepad. |
| 94 virtual PPB_Gamepad_API* GetGamepadAPI(PP_Instance instance) = 0; | 98 virtual PPB_Gamepad_API* GetGamepadAPI(PP_Instance instance) = 0; |
| 95 | 99 |
| 96 // InputEvent. | 100 // InputEvent. |
| 97 virtual int32_t RequestInputEvents(PP_Instance instance, | 101 virtual int32_t RequestInputEvents(PP_Instance instance, |
| 98 uint32_t event_classes) = 0; | 102 uint32_t event_classes) = 0; |
| 99 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, | 103 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, |
| 100 uint32_t event_classes) = 0; | 104 uint32_t event_classes) = 0; |
| 101 virtual void ClearInputEventRequest(PP_Instance instance, | 105 virtual void ClearInputEventRequest(PP_Instance instance, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 PP_URLComponents_Dev* components) = 0; | 182 PP_URLComponents_Dev* components) = 0; |
| 179 #endif // !defined(OS_NACL) | 183 #endif // !defined(OS_NACL) |
| 180 | 184 |
| 181 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 185 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
| 182 }; | 186 }; |
| 183 | 187 |
| 184 } // namespace thunk | 188 } // namespace thunk |
| 185 } // namespace ppapi | 189 } // namespace ppapi |
| 186 | 190 |
| 187 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 191 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
| OLD | NEW |