Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: ppapi/proxy/ppb_instance_proxy.h

Issue 8371008: Revert 106717 - Revert 106677 (caused several PPAPI test timeouts, see http://crbug.com/101154) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppb_file_ref_proxy.cc ('k') | ppapi/proxy/ppb_instance_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_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_var.h" 10 #include "ppapi/c/pp_var.h"
11 #include "ppapi/cpp/completion_callback.h"
11 #include "ppapi/proxy/interface_proxy.h" 12 #include "ppapi/proxy/interface_proxy.h"
13 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
12 #include "ppapi/shared_impl/function_group_base.h" 14 #include "ppapi/shared_impl/function_group_base.h"
13 #include "ppapi/shared_impl/host_resource.h" 15 #include "ppapi/shared_impl/host_resource.h"
14 #include "ppapi/shared_impl/instance_impl.h" 16 #include "ppapi/shared_impl/instance_impl.h"
15 #include "ppapi/thunk/ppb_instance_api.h" 17 #include "ppapi/thunk/ppb_instance_api.h"
16 18
19 // Windows headers interfere with this file.
20 #ifdef PostMessage
21 #undef PostMessage
22 #endif
23
17 namespace ppapi { 24 namespace ppapi {
18 namespace proxy { 25 namespace proxy {
19 26
20 class SerializedVarReceiveInput; 27 class SerializedVarReceiveInput;
21 class SerializedVarOutParam; 28 class SerializedVarOutParam;
22 class SerializedVarReturnValue; 29 class SerializedVarReturnValue;
23 30
24 class PPB_Instance_Proxy : public InterfaceProxy, 31 class PPB_Instance_Proxy : public InterfaceProxy,
25 public ppapi::InstanceImpl, 32 public ppapi::InstanceImpl,
26 public ppapi::thunk::PPB_Instance_FunctionAPI { 33 public ppapi::thunk::PPB_Instance_FunctionAPI {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 PP_Instance instance, 98 PP_Instance instance,
92 PP_URLComponents_Dev* components) OVERRIDE; 99 PP_URLComponents_Dev* components) OVERRIDE;
93 virtual void PostMessage(PP_Instance instance, PP_Var message) OVERRIDE; 100 virtual void PostMessage(PP_Instance instance, PP_Var message) OVERRIDE;
94 virtual int32_t LockMouse(PP_Instance instance, 101 virtual int32_t LockMouse(PP_Instance instance,
95 PP_CompletionCallback callback) OVERRIDE; 102 PP_CompletionCallback callback) OVERRIDE;
96 virtual void UnlockMouse(PP_Instance instance) OVERRIDE; 103 virtual void UnlockMouse(PP_Instance instance) OVERRIDE;
97 104
98 static const ApiID kApiID = API_ID_PPB_INSTANCE; 105 static const ApiID kApiID = API_ID_PPB_INSTANCE;
99 106
100 private: 107 private:
101 // Message handlers. 108 // Plugin -> Host message handlers.
102 void OnMsgGetWindowObject(PP_Instance instance, 109 void OnMsgGetWindowObject(PP_Instance instance,
103 SerializedVarReturnValue result); 110 SerializedVarReturnValue result);
104 void OnMsgGetOwnerElementObject(PP_Instance instance, 111 void OnMsgGetOwnerElementObject(PP_Instance instance,
105 SerializedVarReturnValue result); 112 SerializedVarReturnValue result);
106 void OnMsgBindGraphics(PP_Instance instance, 113 void OnMsgBindGraphics(PP_Instance instance,
107 const ppapi::HostResource& device, 114 const ppapi::HostResource& device,
108 PP_Bool* result); 115 PP_Bool* result);
109 void OnMsgIsFullFrame(PP_Instance instance, PP_Bool* result); 116 void OnMsgIsFullFrame(PP_Instance instance, PP_Bool* result);
110 void OnMsgExecuteScript(PP_Instance instance, 117 void OnMsgExecuteScript(PP_Instance instance,
111 SerializedVarReceiveInput script, 118 SerializedVarReceiveInput script,
(...skipping 20 matching lines...) Expand all
132 void OnMsgFlashGetScreenSize(PP_Instance instance, 139 void OnMsgFlashGetScreenSize(PP_Instance instance,
133 PP_Bool* result, 140 PP_Bool* result,
134 PP_Size* size); 141 PP_Size* size);
135 void OnMsgRequestInputEvents(PP_Instance instance, 142 void OnMsgRequestInputEvents(PP_Instance instance,
136 bool is_filtering, 143 bool is_filtering,
137 uint32_t event_classes); 144 uint32_t event_classes);
138 void OnMsgClearInputEvents(PP_Instance instance, 145 void OnMsgClearInputEvents(PP_Instance instance,
139 uint32_t event_classes); 146 uint32_t event_classes);
140 void OnMsgPostMessage(PP_Instance instance, 147 void OnMsgPostMessage(PP_Instance instance,
141 SerializedVarReceiveInput message); 148 SerializedVarReceiveInput message);
142 void OnMsgLockMouse(PP_Instance instance, 149 void OnMsgLockMouse(PP_Instance instance);
143 uint32_t serialized_callback);
144 void OnMsgUnlockMouse(PP_Instance instance); 150 void OnMsgUnlockMouse(PP_Instance instance);
145 void OnMsgResolveRelativeToDocument(PP_Instance instance, 151 void OnMsgResolveRelativeToDocument(PP_Instance instance,
146 SerializedVarReceiveInput relative, 152 SerializedVarReceiveInput relative,
147 SerializedVarReturnValue result); 153 SerializedVarReturnValue result);
148 void OnMsgDocumentCanRequest(PP_Instance instance, 154 void OnMsgDocumentCanRequest(PP_Instance instance,
149 SerializedVarReceiveInput url, 155 SerializedVarReceiveInput url,
150 PP_Bool* result); 156 PP_Bool* result);
151 void OnMsgDocumentCanAccessDocument(PP_Instance active, 157 void OnMsgDocumentCanAccessDocument(PP_Instance active,
152 PP_Instance target, 158 PP_Instance target,
153 PP_Bool* result); 159 PP_Bool* result);
154 void OnMsgGetDocumentURL(PP_Instance instance, 160 void OnMsgGetDocumentURL(PP_Instance instance,
155 SerializedVarReturnValue result); 161 SerializedVarReturnValue result);
156 void OnMsgGetPluginInstanceURL(PP_Instance instance, 162 void OnMsgGetPluginInstanceURL(PP_Instance instance,
157 SerializedVarReturnValue result); 163 SerializedVarReturnValue result);
164
165 // Host -> Plugin message handlers.
166 void OnMsgMouseLockComplete(PP_Instance instance, int32_t result);
167
168 void MouseLockCompleteInHost(int32_t result, PP_Instance instance);
169
170 pp::CompletionCallbackFactory<PPB_Instance_Proxy,
171 ProxyNonThreadSafeRefCount> callback_factory_;
158 }; 172 };
159 173
160 } // namespace proxy 174 } // namespace proxy
161 } // namespace ppapi 175 } // namespace ppapi
162 176
163 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ 177 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_file_ref_proxy.cc ('k') | ppapi/proxy/ppb_instance_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698