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

Unified Diff: webkit/glue/plugins/pepper_event_conversion.h

Issue 2884016: Chrome side of Pepper v2 scrollbar widget. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
Index: webkit/glue/plugins/pepper_event_conversion.h
===================================================================
--- webkit/glue/plugins/pepper_event_conversion.h (revision 0)
+++ webkit/glue/plugins/pepper_event_conversion.h (revision 0)
@@ -0,0 +1,26 @@
+// Copyright (c) 2010 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.
+
+#ifndef WEBKIT_GLUE_PLUGINS_PEPPER_EVENT_H_
+#define WEBKIT_GLUE_PLUGINS_PEPPER_EVENT_H_
+
+typedef struct _pp_Event PP_Event;
+
+namespace WebKit {
+class WebInputEvent;
+}
+
+namespace pepper {
+
+// Creates a PP_Event from the given WebInputEvent. If it fails, returns NULL.
+// The caller owns the created object on success.
+PP_Event* CreatePP_Event(const WebKit::WebInputEvent& event);
+
+// Creates a WebInputEvent from the given PP_Event. If it fails, returns NULL.
+// The caller owns the created object on success.
+WebKit::WebInputEvent* CreateWebInputEvent(const PP_Event& event);
+
+} // namespace pepper
+
+#endif // WEBKIT_GLUE_PLUGINS_PEPPER_EVENT_H_
Property changes on: webkit\glue\plugins\pepper_event_conversion.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698