OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_url_util_dev.h" | 8 #include "ppapi/c/dev/ppb_url_util_dev.h" |
9 #include "ppapi/c/pp_completion_callback.h" | 9 #include "ppapi/c/pp_completion_callback.h" |
10 #include "ppapi/c/ppb_instance.h" | 10 #include "ppapi/c/ppb_instance.h" |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_size.h" | 12 #include "ppapi/c/pp_size.h" |
13 #include "ppapi/c/private/ppb_instance_private.h" | 13 #include "ppapi/c/private/ppb_instance_private.h" |
14 #include "ppapi/shared_impl/api_id.h" | 14 #include "ppapi/shared_impl/api_id.h" |
15 | 15 |
16 // Windows headers interfere with this file. | |
17 #ifdef PostMessage | |
18 #undef PostMessage | |
19 #endif | |
20 | |
21 namespace ppapi { | 16 namespace ppapi { |
22 namespace thunk { | 17 namespace thunk { |
23 | 18 |
24 class PPB_Instance_FunctionAPI { | 19 class PPB_Instance_FunctionAPI { |
25 public: | 20 public: |
26 virtual ~PPB_Instance_FunctionAPI() {} | 21 virtual ~PPB_Instance_FunctionAPI() {} |
27 | 22 |
28 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; | 23 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; |
29 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; | 24 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; |
30 | 25 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, | 96 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, |
102 PP_URLComponents_Dev* components) = 0; | 97 PP_URLComponents_Dev* components) = 0; |
103 | 98 |
104 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 99 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
105 }; | 100 }; |
106 | 101 |
107 } // namespace thunk | 102 } // namespace thunk |
108 } // namespace ppapi | 103 } // namespace ppapi |
109 | 104 |
110 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 105 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |