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

Unified Diff: views/ime/input_method_ibus.h

Issue 7004029: Fix to make InputMethodIBus usable on every ChromeOS device (even without TouchUI) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small fix to replace "if" with "?" Created 9 years, 7 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 | « build/common.gypi ('k') | views/ime/input_method_ibus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/ime/input_method_ibus.h
diff --git a/views/ime/input_method_ibus.h b/views/ime/input_method_ibus.h
index 1e1a2034b646acc8170dad854108cc10c339c4a1..bda8ab5fb527ba25586421035cefce7d7ddbcb3c 100644
--- a/views/ime/input_method_ibus.h
+++ b/views/ime/input_method_ibus.h
@@ -41,6 +41,14 @@ class InputMethodIBus : public InputMethodBase {
virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE;
virtual bool IsActive() OVERRIDE;
+ // Returns true when
+ // 1) built with GYP_DEFINES="touchui=1" or,
+ // 2) enabled by SetEnabledInputMethodIBus or,
+ // 3) enabled by command line flag "--enable-inputmethod-ibus"
+ static bool IsInputMethodIBusEnabled();
+ // Enable/Disable InputMethodIBus
+ static void SetEnableInputMethodIBus(bool enabled);
+
private:
// A class to hold all data related to a key event being processed by the
// input method but still has no result back yet.
« no previous file with comments | « build/common.gypi ('k') | views/ime/input_method_ibus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698