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

Side by Side Diff: webkit/plugins/ppapi/event_conversion.h

Issue 10912062: Implement the gamepad API in the IPC proxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
« no previous file with comments | « ppapi/shared_impl/ppb_gamepad_shared.cc ('k') | webkit/plugins/ppapi/event_conversion.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_PLUGINS_PPAPI_EVENT_CONVERSION_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_EVENT_CONVERSION_H_
6 #define WEBKIT_PLUGINS_PPAPI_EVENT_CONVERSION_H_ 6 #define WEBKIT_PLUGINS_PPAPI_EVENT_CONVERSION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/linked_ptr.h" 10 #include "base/memory/linked_ptr.h"
11 #include "ppapi/c/ppb_gamepad.h"
12 #include "ppapi/c/ppb_input_event.h" 11 #include "ppapi/c/ppb_input_event.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
14 #include "webkit/plugins/webkit_plugins_export.h" 13 #include "webkit/plugins/webkit_plugins_export.h"
15 14
16 struct PP_InputEvent; 15 struct PP_InputEvent;
17 16
18 namespace ppapi { 17 namespace ppapi {
19 struct InputEventData; 18 struct InputEventData;
20 } 19 }
21 20
(...skipping 21 matching lines...) Expand all
43 // coordinates of a point within the plugin's area on the page. 42 // coordinates of a point within the plugin's area on the page.
44 std::vector<linked_ptr<WebKit::WebInputEvent> > CreateSimulatedWebInputEvents( 43 std::vector<linked_ptr<WebKit::WebInputEvent> > CreateSimulatedWebInputEvents(
45 const ::ppapi::InputEventData& event, 44 const ::ppapi::InputEventData& event,
46 int plugin_x, 45 int plugin_x,
47 int plugin_y); 46 int plugin_y);
48 47
49 // Returns the PPAPI event class for the given WebKit event type. The given 48 // Returns the PPAPI event class for the given WebKit event type. The given
50 // type should not be "Undefined" since there's no corresponding PPAPI class. 49 // type should not be "Undefined" since there's no corresponding PPAPI class.
51 PP_InputEvent_Class ClassifyInputEvent(WebKit::WebInputEvent::Type type); 50 PP_InputEvent_Class ClassifyInputEvent(WebKit::WebInputEvent::Type type);
52 51
53 // Translate from WebGamepads to the Gamepad API format
54 // PP_GamepadsSampleData.
55 void ConvertWebKitGamepadData(WebKit::WebGamepads& webkit_data,
56 PP_GamepadsSampleData* output_data);
57
58 } // namespace ppapi 52 } // namespace ppapi
59 } // namespace webkit 53 } // namespace webkit
60 54
61 #endif // WEBKIT_PLUGINS_PPAPI_EVENT_CONVERSION_H_ 55 #endif // WEBKIT_PLUGINS_PPAPI_EVENT_CONVERSION_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_gamepad_shared.cc ('k') | webkit/plugins/ppapi/event_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698