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

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

Issue 7621070: Merge the plugin and impl side of the audio config and input event resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compile issues Created 9 years, 4 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698