Chromium Code Reviews| Index: content/public/browser/native_web_keyboard_event.h |
| diff --git a/content/public/browser/native_web_keyboard_event.h b/content/public/browser/native_web_keyboard_event.h |
| index 3e4db80d49d590deb65e31cb8282fb91ecf2eee9..4bf6db4e82063269f1a773c62dfbf83e4db57ea9 100644 |
| --- a/content/public/browser/native_web_keyboard_event.h |
| +++ b/content/public/browser/native_web_keyboard_event.h |
| @@ -13,6 +13,10 @@ |
| #include "ui/events/event_constants.h" |
| #include "ui/gfx/native_widget_types.h" |
| +namespace ui { |
| +class KeyEvent; |
| +} |
| + |
| namespace content { |
| // Owns a platform specific event; used to pass own and pass event through |
| @@ -22,6 +26,7 @@ struct CONTENT_EXPORT NativeWebKeyboardEvent : |
| NativeWebKeyboardEvent(); |
| explicit NativeWebKeyboardEvent(gfx::NativeEvent native_event); |
| + explicit NativeWebKeyboardEvent(const ui::KeyEvent& key_event); |
|
sadrul
2014/11/21 19:33:42
Should this have some sort of #ifdef guard? (I don
Andre
2014/11/22 00:09:58
Done.
Now guarded inside !ANDROID.
And looks like
|
| #if defined(USE_AURA) |
| NativeWebKeyboardEvent(ui::EventType type, |
| bool is_char, |