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

Unified 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, 6 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 side-by-side diff with in-line comments
Download patch
Index: webkit/plugins/ppapi/ppb_input_event_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_input_event_impl.cc (revision 0)
+++ webkit/plugins/ppapi/ppb_input_event_impl.cc (revision 0)
@@ -0,0 +1,40 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "webkit/plugins/ppapi/ppb_input_event_impl.h"
+
+#include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
+#include "webkit/plugins/ppapi/var.h"
+
+using ppapi::InputEventData;
+using ppapi::InputEventImpl;
+using ppapi::thunk::PPB_InputEvent_API;
+
+namespace webkit {
+namespace ppapi {
+
+PPB_InputEvent_Impl::PPB_InputEvent_Impl(PluginInstance* instance,
+ const InputEventData& data)
+ : Resource(instance),
+ InputEventImpl(data) {
+}
+
+// static
+PP_Resource PPB_InputEvent_Impl::Create(PluginInstance* instance,
+ const InputEventData& data) {
+ scoped_refptr<PPB_InputEvent_Impl> event(
+ new PPB_InputEvent_Impl(instance, data));
+ return event->GetReference();
+}
+
+PPB_InputEvent_API* PPB_InputEvent_Impl::AsPPB_InputEvent_API() {
+ return this;
+}
+
+PP_Var PPB_InputEvent_Impl::StringToPPVar(const std::string& str) {
+ return StringVar::StringToPPVar(instance()->module(), str);
+}
+
+} // namespace ppapi
+} // namespace webkit
Property changes on: webkit/plugins/ppapi/ppb_input_event_impl.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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