OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_EVENT_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_EVENT_H_ |
| 7 |
| 8 typedef struct _pp_Event PP_Event; |
| 9 |
| 10 namespace WebKit { |
| 11 class WebInputEvent; |
| 12 } |
| 13 |
| 14 namespace pepper { |
| 15 |
| 16 // Creates a PP_Event from the given WebInputEvent. If it fails, returns NULL. |
| 17 // The caller owns the created object on success. |
| 18 PP_Event* CreatePP_Event(const WebKit::WebInputEvent& event); |
| 19 |
| 20 // Creates a WebInputEvent from the given PP_Event. If it fails, returns NULL. |
| 21 // The caller owns the created object on success. |
| 22 WebKit::WebInputEvent* CreateWebInputEvent(const PP_Event& event); |
| 23 |
| 24 } // namespace pepper |
| 25 |
| 26 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_EVENT_H_ |
OLD | NEW |