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_text_input_dev.h" | 10 #include "ppapi/c/dev/ppb_text_input_dev.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 int32_t total, | 83 int32_t total, |
84 PP_Bool final_result) = 0; | 84 PP_Bool final_result) = 0; |
85 virtual void SelectedFindResultChanged(PP_Instance instance, | 85 virtual void SelectedFindResultChanged(PP_Instance instance, |
86 int32_t index) = 0; | 86 int32_t index) = 0; |
87 | 87 |
88 // Fullscreen. | 88 // Fullscreen. |
89 virtual PP_Bool SetFullscreen(PP_Instance instance, | 89 virtual PP_Bool SetFullscreen(PP_Instance instance, |
90 PP_Bool fullscreen) = 0; | 90 PP_Bool fullscreen) = 0; |
91 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; | 91 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; |
92 | 92 |
93 // Flash (Deprecated for Flash_Functions). | |
94 virtual PPB_Flash_API* GetFlashAPI() = 0; | |
95 | |
96 // This is an implementation-only function which grabs an instance of a | 93 // This is an implementation-only function which grabs an instance of a |
97 // "singleton resource". These are used to implement instance interfaces | 94 // "singleton resource". These are used to implement instance interfaces |
98 // (functions which are associated with the instance itself as opposed to a | 95 // (functions which are associated with the instance itself as opposed to a |
99 // resource). | 96 // resource). |
100 virtual Resource* GetSingletonResource( | 97 virtual Resource* GetSingletonResource( |
101 PP_Instance instance, SingletonResourceID id) = 0; | 98 PP_Instance instance, SingletonResourceID id) = 0; |
102 | 99 |
103 // InputEvent. | 100 // InputEvent. |
104 virtual int32_t RequestInputEvents(PP_Instance instance, | 101 virtual int32_t RequestInputEvents(PP_Instance instance, |
105 uint32_t event_classes) = 0; | 102 uint32_t event_classes) = 0; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 PP_URLComponents_Dev* components) = 0; | 193 PP_URLComponents_Dev* components) = 0; |
197 #endif // !defined(OS_NACL) | 194 #endif // !defined(OS_NACL) |
198 | 195 |
199 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 196 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
200 }; | 197 }; |
201 | 198 |
202 } // namespace thunk | 199 } // namespace thunk |
203 } // namespace ppapi | 200 } // namespace ppapi |
204 | 201 |
205 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 202 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |