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

Side by Side Diff: ppapi/proxy/ppp_input_event_proxy.cc

Issue 9361065: reland 121901, PPAPI: Add unlocking for PPP calls and callbacks... (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppp_graphics_3d_proxy.cc ('k') | ppapi/proxy/ppp_instance_private_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) 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 #include "ppapi/proxy/ppp_input_event_proxy.h" 5 #include "ppapi/proxy/ppp_input_event_proxy.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ppapi/c/ppp_input_event.h" 9 #include "ppapi/c/ppp_input_event.h"
10 #include "ppapi/proxy/host_dispatcher.h" 10 #include "ppapi/proxy/host_dispatcher.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 OnMsgHandleFilteredInputEvent) 91 OnMsgHandleFilteredInputEvent)
92 IPC_MESSAGE_UNHANDLED(handled = false) 92 IPC_MESSAGE_UNHANDLED(handled = false)
93 IPC_END_MESSAGE_MAP() 93 IPC_END_MESSAGE_MAP()
94 return handled; 94 return handled;
95 } 95 }
96 96
97 void PPP_InputEvent_Proxy::OnMsgHandleInputEvent(PP_Instance instance, 97 void PPP_InputEvent_Proxy::OnMsgHandleInputEvent(PP_Instance instance,
98 const InputEventData& data) { 98 const InputEventData& data) {
99 scoped_refptr<PPB_InputEvent_Shared> resource(new PPB_InputEvent_Shared( 99 scoped_refptr<PPB_InputEvent_Shared> resource(new PPB_InputEvent_Shared(
100 OBJECT_IS_PROXY, instance, data)); 100 OBJECT_IS_PROXY, instance, data));
101 ppp_input_event_impl_->HandleInputEvent(instance, resource->pp_resource()); 101 CallWhileUnlocked(ppp_input_event_impl_->HandleInputEvent,
102 instance,
103 resource->pp_resource());
102 } 104 }
103 105
104 void PPP_InputEvent_Proxy::OnMsgHandleFilteredInputEvent( 106 void PPP_InputEvent_Proxy::OnMsgHandleFilteredInputEvent(
105 PP_Instance instance, 107 PP_Instance instance,
106 const InputEventData& data, 108 const InputEventData& data,
107 PP_Bool* result) { 109 PP_Bool* result) {
108 scoped_refptr<PPB_InputEvent_Shared> resource(new PPB_InputEvent_Shared( 110 scoped_refptr<PPB_InputEvent_Shared> resource(new PPB_InputEvent_Shared(
109 OBJECT_IS_PROXY, instance, data)); 111 OBJECT_IS_PROXY, instance, data));
110 *result = ppp_input_event_impl_->HandleInputEvent(instance, 112 *result = CallWhileUnlocked(ppp_input_event_impl_->HandleInputEvent,
111 resource->pp_resource()); 113 instance,
114 resource->pp_resource());
112 } 115 }
113 116
114 } // namespace proxy 117 } // namespace proxy
115 } // namespace ppapi 118 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppp_graphics_3d_proxy.cc ('k') | ppapi/proxy/ppp_instance_private_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698