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

Side by Side Diff: webkit/glue/plugins/pepper_event_conversion.h

Issue 3386019: Pull latest PPAPI. Change support for key handling. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | « no previous file | webkit/glue/plugins/pepper_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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_GLUE_PLUGINS_PEPPER_EVENT_H_ 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_EVENT_H_
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_EVENT_H_ 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_EVENT_H_
7 7
8 struct PP_Event; 8 #include <vector>
9
10 struct PP_InputEvent;
9 11
10 namespace WebKit { 12 namespace WebKit {
11 class WebInputEvent; 13 class WebInputEvent;
12 } 14 }
13 15
14 namespace pepper { 16 namespace pepper {
15 17
16 // Creates a PP_Event from the given WebInputEvent. If it fails, returns NULL. 18 // Converts the given WebKit event to one or possibly multiple PP_InputEvents.
17 // The caller owns the created object on success. 19 // The generated events will be filled into the given vector. On failure, no
18 PP_Event* CreatePP_Event(const WebKit::WebInputEvent& event); 20 // events will ge generated and the vector will be empty.
21 void CreatePPEvent(const WebKit::WebInputEvent& event,
22 std::vector<PP_InputEvent>* pp_events);
19 23
20 // Creates a WebInputEvent from the given PP_Event. If it fails, returns NULL. 24 // Creates a WebInputEvent from the given PP_InputEvent. If it fails, returns
21 // The caller owns the created object on success. 25 // NULL. The caller owns the created object on success.
22 WebKit::WebInputEvent* CreateWebInputEvent(const PP_Event& event); 26 WebKit::WebInputEvent* CreateWebInputEvent(const PP_InputEvent& event);
23 27
24 } // namespace pepper 28 } // namespace pepper
25 29
26 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_EVENT_H_ 30 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_EVENT_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/plugins/pepper_event_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698