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

Unified Diff: ppapi/proxy/ppp_input_event_proxy.cc

Issue 9391013: Make a global enum to differentiate impl & proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
Index: ppapi/proxy/ppp_input_event_proxy.cc
diff --git a/ppapi/proxy/ppp_input_event_proxy.cc b/ppapi/proxy/ppp_input_event_proxy.cc
index cfce397403d9608be89d6ae20fdb3554954dcd40..c7d4a9ac12578c3e432fe18def3e7890e16080c4 100644
--- a/ppapi/proxy/ppp_input_event_proxy.cc
+++ b/ppapi/proxy/ppp_input_event_proxy.cc
@@ -97,7 +97,7 @@ bool PPP_InputEvent_Proxy::OnMessageReceived(const IPC::Message& msg) {
void PPP_InputEvent_Proxy::OnMsgHandleInputEvent(PP_Instance instance,
const InputEventData& data) {
scoped_refptr<PPB_InputEvent_Shared> resource(new PPB_InputEvent_Shared(
- PPB_InputEvent_Shared::InitAsProxy(), instance, data));
+ OBJECT_IS_PROXY, instance, data));
ppp_input_event_impl_->HandleInputEvent(instance, resource->pp_resource());
}
@@ -106,7 +106,7 @@ void PPP_InputEvent_Proxy::OnMsgHandleFilteredInputEvent(
const InputEventData& data,
PP_Bool* result) {
scoped_refptr<PPB_InputEvent_Shared> resource(new PPB_InputEvent_Shared(
- PPB_InputEvent_Shared::InitAsProxy(), instance, data));
+ OBJECT_IS_PROXY, instance, data));
*result = ppp_input_event_impl_->HandleInputEvent(instance,
resource->pp_resource());
}

Powered by Google App Engine
This is Rietveld 408576698