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

Side by Side Diff: webkit/plugins/ppapi/ppb_input_event_impl.cc

Issue 7285010: Implement an input event resource. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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
OLDNEW
« webkit/plugins/ppapi/ppb_input_event_impl.h ('K') | « webkit/plugins/ppapi/ppb_input_event_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698