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