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 "ppapi/c/dev/ppb_console_dev.h" | 8 #include "ppapi/c/dev/ppb_console_dev.h" |
9 #include "ppapi/c/dev/ppb_text_input_dev.h" | 9 #include "ppapi/c/dev/ppb_text_input_dev.h" |
10 #include "ppapi/c/dev/ppb_url_util_dev.h" | 10 #include "ppapi/c/dev/ppb_url_util_dev.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #endif | 25 #endif |
26 | 26 |
27 namespace ppapi { | 27 namespace ppapi { |
28 | 28 |
29 struct ViewData; | 29 struct ViewData; |
30 | 30 |
31 namespace thunk { | 31 namespace thunk { |
32 | 32 |
33 class PPB_Flash_API; | 33 class PPB_Flash_API; |
34 | 34 |
35 class PPB_Instance_FunctionAPI { | 35 class PPB_Instance_API { |
36 public: | 36 public: |
37 virtual ~PPB_Instance_FunctionAPI() {} | 37 virtual ~PPB_Instance_API() {} |
38 | 38 |
39 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; | 39 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; |
40 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; | 40 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; |
41 | 41 |
42 // Not an exposed PPAPI function, this returns the internal view data struct. | 42 // Not an exposed PPAPI function, this returns the internal view data struct. |
43 virtual const ViewData* GetViewData(PP_Instance instance) = 0; | 43 virtual const ViewData* GetViewData(PP_Instance instance) = 0; |
44 | 44 |
45 // InstancePrivate. | 45 // InstancePrivate. |
46 virtual PP_Var GetWindowObject(PP_Instance instance) = 0; | 46 virtual PP_Var GetWindowObject(PP_Instance instance) = 0; |
47 virtual PP_Var GetOwnerElementObject(PP_Instance instance) = 0; | 47 virtual PP_Var GetOwnerElementObject(PP_Instance instance) = 0; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 PP_URLComponents_Dev* components) = 0; | 144 PP_URLComponents_Dev* components) = 0; |
145 #endif // !defined(OS_NACL) | 145 #endif // !defined(OS_NACL) |
146 | 146 |
147 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 147 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
148 }; | 148 }; |
149 | 149 |
150 } // namespace thunk | 150 } // namespace thunk |
151 } // namespace ppapi | 151 } // namespace ppapi |
152 | 152 |
153 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 153 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |