diff options
author | yusukes@chromium.org <yusukes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-02 14:35:26 +0000 |
---|---|---|
committer | yusukes@chromium.org <yusukes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-02 14:35:26 +0000 |
commit | 6e93618fc3943d93d8ac914004141ddd89983a7e (patch) | |
tree | 0c0106b2be1b1024ce20beccf6d8584b3fd1b4ef /chrome/browser/chromeos/preferences.h | |
parent | eba3815ac099063d69fb981b78f4d6ae0d13b3d7 (diff) | |
download | chromium_src-6e93618fc3943d93d8ac914004141ddd89983a7e.zip chromium_src-6e93618fc3943d93d8ac914004141ddd89983a7e.tar.gz chromium_src-6e93618fc3943d93d8ac914004141ddd89983a7e.tar.bz2 |
Adding "preload_engines" and "use_global_engine" preferences to Chrome side.
BUG=crosbug.com/488
TEST=none
Review URL: http://codereview.chromium.org/1546010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43475 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/preferences.h')
-rw-r--r-- | chrome/browser/chromeos/preferences.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/chrome/browser/chromeos/preferences.h b/chrome/browser/chromeos/preferences.h index f4cb2e3..d324e09 100644 --- a/chrome/browser/chromeos/preferences.h +++ b/chrome/browser/chromeos/preferences.h @@ -43,17 +43,32 @@ class Preferences : public NotificationObserver { private: void SetTimeZone(const std::wstring& id); - // Writes |value| to the IME (IBus) configuration daemon. |section| (e.g. - // "engine/Hangul") and |name| (e.g. "HangulKeyboard") should not be NULL. + // Writes boolean |value| to the IME (IBus) configuration daemon. |section| + // (e.g. "general") and |name| (e.g. "use_global_engine") should not be NULL. + void SetLanguageConfigBoolean(const char* section, + const char* name, + bool value); + + // Writes stromg |value| to the IME (IBus) configuration daemon. |section| + // and |name| should not be NULL. void SetLanguageConfigString(const char* section, const char* name, const std::wstring& value); + // Activates IMEs that are on |value|, which is a comma separated list of IME + // IDs (e.g. "xkb:en,pinyin,hangul,m17n:ar:kbd"), and deactivates all other + // IMEs that are currently active. |value| could be empty. In that case, this + // function deactivates all active IMEs. + void SetPreloadEngines(const std::wstring& value); + StringPrefMember timezone_; BooleanPrefMember tap_to_click_enabled_; BooleanPrefMember vert_edge_scroll_enabled_; IntegerPrefMember speed_factor_; IntegerPrefMember sensitivity_; + // Language (IME) preferences. + BooleanPrefMember language_use_global_engine_; + StringPrefMember language_preload_engines_; StringPrefMember language_hangul_keyboard_; DISALLOW_COPY_AND_ASSIGN(Preferences); |