Commit edc80952 authored by sadrul@chromium.org's avatar sadrul@chromium.org

Fix touch compile after r86390.

ibus is not usable on lucid, so touchui build still needs to use ibus-gtk.

BUG=none
TEST=touchui compiles
TBR=hashimoto@chromium.org, oshima@chromium.org

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86394 0039d316-1c4b-4281-b951-d872f2087c98
parent 28c580ff
......@@ -431,8 +431,6 @@
'sources/': [
['exclude', 'focus/accelerator_handler_gtk.cc'],
['exclude', 'controls/menu/native_menu_gtk.cc'],
['exclude', 'ime/input_method_gtk.cc'],
['exclude', 'ime/input_method_gtk.h'],
],
'conditions': [
['"<!@(<(pkg-config) --atleast-version=2.0 inputproto || echo $?)"!=""', {
......
......@@ -46,8 +46,7 @@
#if defined(HAVE_IBUS)
#include "views/ime/input_method_ibus.h"
#endif
#if !defined(TOUCH_UI)
#else
#include "views/ime/input_method_gtk.h"
#endif
......@@ -621,9 +620,7 @@ void NativeWidgetGtk::InitNativeWidget(const Widget::InitParams& params) {
// TODO(suzhe): Always enable input method when we start to use
// RenderWidgetHostViewViews in normal ChromeOS.
if (!child_ && NativeTextfieldViews::IsTextfieldViewsEnabled()) {
#if defined(TOUCH_UI)
input_method_.reset(new InputMethodIBus(this));
#elif defined(HAVE_IBUS)
#if defined(HAVE_IBUS)
input_method_.reset(InputMethodIBus::IsInputMethodIBusEnabled() ?
static_cast<InputMethod*>(new InputMethodIBus(this)) :
static_cast<InputMethod*>(new InputMethodGtk(this)));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment