OLD | NEW |
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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 } | 158 } |
159 | 159 |
160 void PPB_Testing_Proxy::OnMsgGetLiveObjectsForInstance(PP_Instance instance, | 160 void PPB_Testing_Proxy::OnMsgGetLiveObjectsForInstance(PP_Instance instance, |
161 uint32_t* result) { | 161 uint32_t* result) { |
162 *result = ppb_testing_impl_->GetLiveObjectsForInstance(instance); | 162 *result = ppb_testing_impl_->GetLiveObjectsForInstance(instance); |
163 } | 163 } |
164 | 164 |
165 void PPB_Testing_Proxy::OnMsgSimulateInputEvent( | 165 void PPB_Testing_Proxy::OnMsgSimulateInputEvent( |
166 PP_Instance instance, | 166 PP_Instance instance, |
167 const InputEventData& input_event) { | 167 const InputEventData& input_event) { |
168 scoped_refptr<InputEventImpl> input_event_impl( | 168 scoped_refptr<PPB_InputEvent_Shared> input_event_impl( |
169 new InputEventImpl(InputEventImpl::InitAsProxy(), | 169 new PPB_InputEvent_Shared(PPB_InputEvent_Shared::InitAsProxy(), |
170 instance, | 170 instance, |
171 input_event)); | 171 input_event)); |
172 ppb_testing_impl_->SimulateInputEvent(instance, | 172 ppb_testing_impl_->SimulateInputEvent(instance, |
173 input_event_impl->pp_resource()); | 173 input_event_impl->pp_resource()); |
174 } | 174 } |
175 | 175 |
176 } // namespace proxy | 176 } // namespace proxy |
177 } // namespace ppapi | 177 } // namespace ppapi |
OLD | NEW |