| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 PP_Var source, | 78 PP_Var source, |
| 79 PP_Var value) = 0; | 79 PP_Var value) = 0; |
| 80 | 80 |
| 81 // Find. | 81 // Find. |
| 82 virtual void NumberOfFindResultsChanged(PP_Instance instance, | 82 virtual void NumberOfFindResultsChanged(PP_Instance instance, |
| 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 // Font. | |
| 89 virtual PP_Var GetFontFamilies(PP_Instance instance) = 0; | |
| 90 | |
| 91 // Fullscreen. | 88 // Fullscreen. |
| 92 virtual PP_Bool SetFullscreen(PP_Instance instance, | 89 virtual PP_Bool SetFullscreen(PP_Instance instance, |
| 93 PP_Bool fullscreen) = 0; | 90 PP_Bool fullscreen) = 0; |
| 94 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; | 91 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; |
| 95 | 92 |
| 96 // Flash (Deprecated for Flash_Functions). | 93 // Flash (Deprecated for Flash_Functions). |
| 97 virtual PPB_Flash_API* GetFlashAPI() = 0; | 94 virtual PPB_Flash_API* GetFlashAPI() = 0; |
| 98 | 95 |
| 99 // This is an implementation-only function which grabs an instance of a | 96 // This is an implementation-only function which grabs an instance of a |
| 100 // "singleton resource". These are used to implement instance interfaces | 97 // "singleton resource". These are used to implement instance interfaces |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 PP_URLComponents_Dev* components) = 0; | 196 PP_URLComponents_Dev* components) = 0; |
| 200 #endif // !defined(OS_NACL) | 197 #endif // !defined(OS_NACL) |
| 201 | 198 |
| 202 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 199 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
| 203 }; | 200 }; |
| 204 | 201 |
| 205 } // namespace thunk | 202 } // namespace thunk |
| 206 } // namespace ppapi | 203 } // namespace ppapi |
| 207 | 204 |
| 208 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 205 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
| OLD | NEW |