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 "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 8 #include "webkit/plugins/ppapi/var.h" |
| 9 |
| 10 using ppapi::InputEventData; |
| 11 using ppapi::InputEventImpl; |
| 12 using ppapi::thunk::PPB_InputEvent_API; |
| 13 |
| 14 namespace webkit { |
| 15 namespace ppapi { |
| 16 |
| 17 PPB_InputEvent_Impl::PPB_InputEvent_Impl(PluginInstance* instance, |
| 18 const InputEventData& data) |
| 19 : Resource(instance), |
| 20 InputEventImpl(data) { |
| 21 } |
| 22 |
| 23 // static |
| 24 PP_Resource PPB_InputEvent_Impl::Create(PluginInstance* instance, |
| 25 const InputEventData& data) { |
| 26 scoped_refptr<PPB_InputEvent_Impl> event( |
| 27 new PPB_InputEvent_Impl(instance, data)); |
| 28 return event->GetReference(); |
| 29 } |
| 30 |
| 31 PPB_InputEvent_API* PPB_InputEvent_Impl::AsPPB_InputEvent_API() { |
| 32 return this; |
| 33 } |
| 34 |
| 35 PP_Var PPB_InputEvent_Impl::StringToPPVar(const std::string& str) { |
| 36 return StringVar::StringToPPVar(instance()->module(), str); |
| 37 } |
| 38 |
| 39 } // namespace ppapi |
| 40 } // namespace webkit |
OLD | NEW |