| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "webkit/plugins/ppapi/ppb_input_event_impl.h" | |
| 6 | |
| 7 #include "ppapi/shared_impl/var.h" | |
| 8 #include "webkit/plugins/ppapi/plugin_module.h" | |
| 9 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | |
| 10 #include "webkit/plugins/ppapi/resource_helper.h" | |
| 11 | |
| 12 using ppapi::InputEventData; | |
| 13 using ppapi::InputEventImpl; | |
| 14 using ppapi::StringVar; | |
| 15 using ppapi::thunk::PPB_InputEvent_API; | |
| 16 | |
| 17 namespace webkit { | |
| 18 namespace ppapi { | |
| 19 | |
| 20 PPB_InputEvent_Impl::PPB_InputEvent_Impl(PP_Instance instance, | |
| 21 const InputEventData& data) | |
| 22 : Resource(instance), | |
| 23 InputEventImpl(data) { | |
| 24 } | |
| 25 | |
| 26 PPB_InputEvent_API* PPB_InputEvent_Impl::AsPPB_InputEvent_API() { | |
| 27 return this; | |
| 28 } | |
| 29 | |
| 30 PP_Var PPB_InputEvent_Impl::StringToPPVar(const std::string& str) { | |
| 31 return StringVar::StringToPPVar( | |
| 32 ResourceHelper::GetPluginModule(this)->pp_module(), str); | |
| 33 } | |
| 34 | |
| 35 } // namespace ppapi | |
| 36 } // namespace webkit | |
| OLD | NEW |