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

Unified Diff: content/public/browser/native_web_keyboard_event.h

Issue 739993002: MacViews: Fix build errors related to NativeWebKeyboardEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698