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

Unified Diff: chrome/common/native_web_keyboard_event_views.cc

Issue 7942004: Consolidate/cleanup event cracking code; single out GdkEvents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge removal of compact nav. Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/tab_contents/tab_contents_container_native.cc ('k') | ui/aura/aura.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/native_web_keyboard_event_views.cc
diff --git a/chrome/common/native_web_keyboard_event_views.cc b/chrome/common/native_web_keyboard_event_views.cc
index 4d0a5c90cc78e4cc4a7c03b69ce014dc4ff738d7..f36f6685b3598c33306a147395989cbe3408ff02 100644
--- a/chrome/common/native_web_keyboard_event_views.cc
+++ b/chrome/common/native_web_keyboard_event_views.cc
@@ -49,9 +49,9 @@ NativeWebKeyboardEventViews::NativeWebKeyboardEventViews(
// |os_event| is a MSG struct, so we can copy it directly.
os_event = event.native_event();
#elif defined(TOOLKIT_USES_GTK)
- if (event.native_event()) {
+ if (event.gdk_event()) {
os_event =
- reinterpret_cast<GdkEventKey*>(gdk_event_copy(event.native_event()));
+ reinterpret_cast<GdkEventKey*>(gdk_event_copy(event.gdk_event()));
nativeKeyCode = os_event->keyval;
} else {
os_event = NULL;
« no previous file with comments | « chrome/browser/ui/views/tab_contents/tab_contents_container_native.cc ('k') | ui/aura/aura.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698