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

Side by Side Diff: ppapi/proxy/ppb_testing_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 unified diff | Download patch | Annotate | Revision Log
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 #include "ppapi/proxy/ppb_testing_proxy.h" 5 #include "ppapi/proxy/ppb_testing_proxy.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "ppapi/c/dev/ppb_testing_dev.h" 8 #include "ppapi/c/dev/ppb_testing_dev.h"
9 #include "ppapi/proxy/enter_proxy.h" 9 #include "ppapi/proxy/enter_proxy.h"
10 #include "ppapi/proxy/plugin_dispatcher.h" 10 #include "ppapi/proxy/plugin_dispatcher.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 void PPB_Testing_Proxy::OnMsgGetLiveObjectsForInstance(PP_Instance instance, 183 void PPB_Testing_Proxy::OnMsgGetLiveObjectsForInstance(PP_Instance instance,
184 uint32_t* result) { 184 uint32_t* result) {
185 *result = ppb_testing_impl_->GetLiveObjectsForInstance(instance); 185 *result = ppb_testing_impl_->GetLiveObjectsForInstance(instance);
186 } 186 }
187 187
188 void PPB_Testing_Proxy::OnMsgSimulateInputEvent( 188 void PPB_Testing_Proxy::OnMsgSimulateInputEvent(
189 PP_Instance instance, 189 PP_Instance instance,
190 const InputEventData& input_event) { 190 const InputEventData& input_event) {
191 scoped_refptr<PPB_InputEvent_Shared> input_event_impl( 191 scoped_refptr<PPB_InputEvent_Shared> input_event_impl(
192 new PPB_InputEvent_Shared(PPB_InputEvent_Shared::InitAsProxy(), 192 new PPB_InputEvent_Shared(OBJECT_IS_PROXY, instance, input_event));
193 instance,
194 input_event));
195 ppb_testing_impl_->SimulateInputEvent(instance, 193 ppb_testing_impl_->SimulateInputEvent(instance,
196 input_event_impl->pp_resource()); 194 input_event_impl->pp_resource());
197 } 195 }
198 196
199 } // namespace proxy 197 } // namespace proxy
200 } // namespace ppapi 198 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698