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

Unified Diff: views/ime/input_method_ibus.cc

Issue 8387005: Fixes to build chrome under chroot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | « views/ime/input_method_ibus.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/ime/input_method_ibus.cc
diff --git a/views/ime/input_method_ibus.cc b/views/ime/input_method_ibus.cc
index 94ee14cba3086eb0ef50629b2318201f2c8f98b5..505f14bf358256b04c257d8e82d73783be568288 100644
--- a/views/ime/input_method_ibus.cc
+++ b/views/ime/input_method_ibus.cc
@@ -78,6 +78,7 @@ void IBusKeyEventFromViewsKeyEvent(const views::KeyEvent& key,
*ibus_keycode = gdk_key->hardware_keycode;
}
#endif
+#if defined(TOUCH_UI) || defined(TOOLKIT_USES_GTK)
else {
// GdkKeyCodeForWindowsKeyCode() is actually nothing to do with Gtk, we
// probably want to rename it to something like XKeySymForWindowsKeyCode(),
@@ -86,6 +87,7 @@ void IBusKeyEventFromViewsKeyEvent(const views::KeyEvent& key,
key.key_code(), key.IsShiftDown() ^ key.IsCapsLockDown());
*ibus_keycode = 0;
}
+#endif
*ibus_state = IBusStateFromViewsFlags(key.flags());
if (key.type() == ui::ET_KEY_RELEASED)
« no previous file with comments | « views/ime/input_method_ibus.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698