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_PROXY_PPB_INSTANCE_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 160 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
161 | 161 |
162 private: | 162 private: |
163 // Plugin -> Host message handlers. | 163 // Plugin -> Host message handlers. |
164 void OnHostMsgGetWindowObject(PP_Instance instance, | 164 void OnHostMsgGetWindowObject(PP_Instance instance, |
165 SerializedVarReturnValue result); | 165 SerializedVarReturnValue result); |
166 void OnHostMsgGetOwnerElementObject(PP_Instance instance, | 166 void OnHostMsgGetOwnerElementObject(PP_Instance instance, |
167 SerializedVarReturnValue result); | 167 SerializedVarReturnValue result); |
168 void OnHostMsgBindGraphics(PP_Instance instance, | 168 void OnHostMsgBindGraphics(PP_Instance instance, |
169 const ppapi::HostResource& device, | 169 PP_Resource device, |
170 PP_Bool* result); | 170 PP_Bool* result); |
171 void OnHostMsgIsFullFrame(PP_Instance instance, PP_Bool* result); | 171 void OnHostMsgIsFullFrame(PP_Instance instance, PP_Bool* result); |
172 void OnHostMsgExecuteScript(PP_Instance instance, | 172 void OnHostMsgExecuteScript(PP_Instance instance, |
173 SerializedVarReceiveInput script, | 173 SerializedVarReceiveInput script, |
174 SerializedVarOutParam out_exception, | 174 SerializedVarOutParam out_exception, |
175 SerializedVarReturnValue result); | 175 SerializedVarReturnValue result); |
176 void OnHostMsgGetAudioHardwareOutputSampleRate(PP_Instance instance, | 176 void OnHostMsgGetAudioHardwareOutputSampleRate(PP_Instance instance, |
177 uint32_t *result); | 177 uint32_t *result); |
178 void OnHostMsgGetAudioHardwareOutputBufferSize(PP_Instance instance, | 178 void OnHostMsgGetAudioHardwareOutputBufferSize(PP_Instance instance, |
179 uint32_t *result); | 179 uint32_t *result); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 // Other helpers. | 275 // Other helpers. |
276 void CancelAnyPendingRequestSurroundingText(PP_Instance instance); | 276 void CancelAnyPendingRequestSurroundingText(PP_Instance instance); |
277 | 277 |
278 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; | 278 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; |
279 }; | 279 }; |
280 | 280 |
281 } // namespace proxy | 281 } // namespace proxy |
282 } // namespace ppapi | 282 } // namespace ppapi |
283 | 283 |
284 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 284 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
OLD | NEW |