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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_instance_proxy.h
===================================================================
--- ppapi/proxy/ppb_instance_proxy.h (revision 106763)
+++ ppapi/proxy/ppb_instance_proxy.h (working copy)
@@ -8,12 +8,19 @@
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_var.h"
+#include "ppapi/cpp/completion_callback.h"
#include "ppapi/proxy/interface_proxy.h"
+#include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
#include "ppapi/shared_impl/function_group_base.h"
#include "ppapi/shared_impl/host_resource.h"
#include "ppapi/shared_impl/instance_impl.h"
#include "ppapi/thunk/ppb_instance_api.h"
+// Windows headers interfere with this file.
+#ifdef PostMessage
+#undef PostMessage
+#endif
+
namespace ppapi {
namespace proxy {
@@ -98,7 +105,7 @@
static const ApiID kApiID = API_ID_PPB_INSTANCE;
private:
- // Message handlers.
+ // Plugin -> Host message handlers.
void OnMsgGetWindowObject(PP_Instance instance,
SerializedVarReturnValue result);
void OnMsgGetOwnerElementObject(PP_Instance instance,
@@ -139,8 +146,7 @@
uint32_t event_classes);
void OnMsgPostMessage(PP_Instance instance,
SerializedVarReceiveInput message);
- void OnMsgLockMouse(PP_Instance instance,
- uint32_t serialized_callback);
+ void OnMsgLockMouse(PP_Instance instance);
void OnMsgUnlockMouse(PP_Instance instance);
void OnMsgResolveRelativeToDocument(PP_Instance instance,
SerializedVarReceiveInput relative,
@@ -155,6 +161,14 @@
SerializedVarReturnValue result);
void OnMsgGetPluginInstanceURL(PP_Instance instance,
SerializedVarReturnValue result);
+
+ // Host -> Plugin message handlers.
+ void OnMsgMouseLockComplete(PP_Instance instance, int32_t result);
+
+ void MouseLockCompleteInHost(int32_t result, PP_Instance instance);
+
+ pp::CompletionCallbackFactory<PPB_Instance_Proxy,
+ ProxyNonThreadSafeRefCount> callback_factory_;
};
} // namespace proxy
« 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