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 |
16 namespace ppapi { | 21 namespace ppapi { |
17 namespace thunk { | 22 namespace thunk { |
18 | 23 |
19 class PPB_Instance_FunctionAPI { | 24 class PPB_Instance_FunctionAPI { |
20 public: | 25 public: |
21 virtual ~PPB_Instance_FunctionAPI() {} | 26 virtual ~PPB_Instance_FunctionAPI() {} |
22 | 27 |
23 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; | 28 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; |
24 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; | 29 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; |
25 | 30 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, | 101 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, |
97 PP_URLComponents_Dev* components) = 0; | 102 PP_URLComponents_Dev* components) = 0; |
98 | 103 |
99 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 104 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
100 }; | 105 }; |
101 | 106 |
102 } // namespace thunk | 107 } // namespace thunk |
103 } // namespace ppapi | 108 } // namespace ppapi |
104 | 109 |
105 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 110 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |