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 "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
9 #include "ppapi/c/pp_resource.h" | 9 #include "ppapi/c/pp_resource.h" |
10 #include "ppapi/c/pp_time.h" | 10 #include "ppapi/c/pp_time.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 PP_URLComponents_Dev* components) OVERRIDE; | 93 PP_URLComponents_Dev* components) OVERRIDE; |
94 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) OVERRIDE; | 94 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) OVERRIDE; |
95 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, | 95 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, |
96 PP_Instance target) OVERRIDE; | 96 PP_Instance target) OVERRIDE; |
97 virtual PP_Var GetDocumentURL(PP_Instance instance, | 97 virtual PP_Var GetDocumentURL(PP_Instance instance, |
98 PP_URLComponents_Dev* components) OVERRIDE; | 98 PP_URLComponents_Dev* components) OVERRIDE; |
99 virtual PP_Var GetPluginInstanceURL( | 99 virtual PP_Var GetPluginInstanceURL( |
100 PP_Instance instance, | 100 PP_Instance instance, |
101 PP_URLComponents_Dev* components) OVERRIDE; | 101 PP_URLComponents_Dev* components) OVERRIDE; |
102 virtual void PostMessage(PP_Instance instance, PP_Var message) OVERRIDE; | 102 virtual void PostMessage(PP_Instance instance, PP_Var message) OVERRIDE; |
| 103 virtual PP_Bool SetCursor(PP_Instance instance, |
| 104 PP_MouseCursor_Type type, |
| 105 PP_Resource image, |
| 106 const PP_Point* hot_spot) OVERRIDE; |
103 virtual int32_t LockMouse(PP_Instance instance, | 107 virtual int32_t LockMouse(PP_Instance instance, |
104 PP_CompletionCallback callback) OVERRIDE; | 108 PP_CompletionCallback callback) OVERRIDE; |
105 virtual void UnlockMouse(PP_Instance instance) OVERRIDE; | 109 virtual void UnlockMouse(PP_Instance instance) OVERRIDE; |
106 | 110 |
107 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 111 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
108 | 112 |
109 private: | 113 private: |
110 // Plugin -> Host message handlers. | 114 // Plugin -> Host message handlers. |
111 void OnHostMsgGetWindowObject(PP_Instance instance, | 115 void OnHostMsgGetWindowObject(PP_Instance instance, |
112 SerializedVarReturnValue result); | 116 SerializedVarReturnValue result); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 void OnHostMsgDocumentCanRequest(PP_Instance instance, | 159 void OnHostMsgDocumentCanRequest(PP_Instance instance, |
156 SerializedVarReceiveInput url, | 160 SerializedVarReceiveInput url, |
157 PP_Bool* result); | 161 PP_Bool* result); |
158 void OnHostMsgDocumentCanAccessDocument(PP_Instance active, | 162 void OnHostMsgDocumentCanAccessDocument(PP_Instance active, |
159 PP_Instance target, | 163 PP_Instance target, |
160 PP_Bool* result); | 164 PP_Bool* result); |
161 void OnHostMsgGetDocumentURL(PP_Instance instance, | 165 void OnHostMsgGetDocumentURL(PP_Instance instance, |
162 SerializedVarReturnValue result); | 166 SerializedVarReturnValue result); |
163 void OnHostMsgGetPluginInstanceURL(PP_Instance instance, | 167 void OnHostMsgGetPluginInstanceURL(PP_Instance instance, |
164 SerializedVarReturnValue result); | 168 SerializedVarReturnValue result); |
| 169 void OnHostMsgSetCursor(PP_Instance instance, |
| 170 int32_t type, |
| 171 const ppapi::HostResource& custom_image, |
| 172 const PP_Point& hot_spot); |
165 | 173 |
166 // Host -> Plugin message handlers. | 174 // Host -> Plugin message handlers. |
167 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); | 175 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); |
168 | 176 |
169 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); | 177 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); |
170 | 178 |
171 pp::CompletionCallbackFactory<PPB_Instance_Proxy, | 179 pp::CompletionCallbackFactory<PPB_Instance_Proxy, |
172 ProxyNonThreadSafeRefCount> callback_factory_; | 180 ProxyNonThreadSafeRefCount> callback_factory_; |
173 }; | 181 }; |
174 | 182 |
175 } // namespace proxy | 183 } // namespace proxy |
176 } // namespace ppapi | 184 } // namespace ppapi |
177 | 185 |
178 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 186 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
OLD | NEW |