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

Unified Diff: webkit/plugins/ppapi/event_conversion.h

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more more clang fun Created 7 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
« no previous file with comments | « webkit/plugins/ppapi/content_decryptor_delegate.cc ('k') | webkit/plugins/ppapi/event_conversion.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/event_conversion.h
===================================================================
--- webkit/plugins/ppapi/event_conversion.h (revision 213561)
+++ webkit/plugins/ppapi/event_conversion.h (working copy)
@@ -1,55 +0,0 @@
-// Copyright (c) 2012 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_PLUGINS_PPAPI_EVENT_CONVERSION_H_
-#define WEBKIT_PLUGINS_PPAPI_EVENT_CONVERSION_H_
-
-#include <vector>
-
-#include "base/memory/linked_ptr.h"
-#include "ppapi/c/ppb_input_event.h"
-#include "third_party/WebKit/public/web/WebInputEvent.h"
-#include "webkit/plugins/webkit_plugins_export.h"
-
-struct PP_InputEvent;
-
-namespace ppapi {
-struct InputEventData;
-}
-
-namespace WebKit {
-class WebGamepads;
-class WebInputEvent;
-}
-
-namespace webkit {
-namespace ppapi {
-
-// Converts the given WebKit event to one or possibly multiple PP_InputEvents.
-// The generated events will be filled into the given vector. On failure, no
-// events will ge generated and the vector will be empty.
-void CreateInputEventData(const WebKit::WebInputEvent& event,
- std::vector< ::ppapi::InputEventData >* pp_events);
-
-// Creates a WebInputEvent from the given PP_InputEvent. If it fails, returns
-// NULL. The caller owns the created object on success.
-WEBKIT_PLUGINS_EXPORT WebKit::WebInputEvent* CreateWebInputEvent(
- const ::ppapi::InputEventData& event);
-
-// Creates an array of WebInputEvents to make the given event look like a user
-// input event on all platforms. |plugin_x| and |plugin_y| should be the
-// coordinates of a point within the plugin's area on the page.
-std::vector<linked_ptr<WebKit::WebInputEvent> > CreateSimulatedWebInputEvents(
- const ::ppapi::InputEventData& event,
- int plugin_x,
- int plugin_y);
-
-// Returns the PPAPI event class for the given WebKit event type. The given
-// type should not be "Undefined" since there's no corresponding PPAPI class.
-PP_InputEvent_Class ClassifyInputEvent(WebKit::WebInputEvent::Type type);
-
-} // namespace ppapi
-} // namespace webkit
-
-#endif // WEBKIT_PLUGINS_PPAPI_EVENT_CONVERSION_H_
« no previous file with comments | « webkit/plugins/ppapi/content_decryptor_delegate.cc ('k') | webkit/plugins/ppapi/event_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698