diff options
author | nona@chromium.org <nona@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-27 07:51:38 +0000 |
---|---|---|
committer | nona@chromium.org <nona@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-27 07:51:38 +0000 |
commit | 3b8f915aa8edf693938509a42a407b19bb29c88e (patch) | |
tree | ec341ea9fb485d5f3b913291529af0fcf0730ad1 /chromeos/ime/component_extension_ime_manager.h | |
parent | a263d9707745fe047c61a5394903ad5893c3dbeb (diff) | |
download | chromium_src-3b8f915aa8edf693938509a42a407b19bb29c88e.zip chromium_src-3b8f915aa8edf693938509a42a407b19bb29c88e.tar.gz chromium_src-3b8f915aa8edf693938509a42a407b19bb29c88e.tar.bz2 |
Implement ComponentExtensionIMEManager.
BUG=164377
TEST=ran chromeos_unittests
TBR=satorux
Review URL: https://chromiumcodereview.appspot.com/12843023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190856 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/ime/component_extension_ime_manager.h')
-rw-r--r-- | chromeos/ime/component_extension_ime_manager.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/chromeos/ime/component_extension_ime_manager.h b/chromeos/ime/component_extension_ime_manager.h index a18c5fd..240631f 100644 --- a/chromeos/ime/component_extension_ime_manager.h +++ b/chromeos/ime/component_extension_ime_manager.h @@ -63,10 +63,10 @@ class CHROMEOS_EXPORT ComponentExtentionIMEManager { // Unloads |input_method_id| component extension IME. This function returns // true on success. This function is safe to call multiple times. Returns // false if already corresponding component extension is unloaded. - bool UnloadComonentExtensionIME(const std::string& input_method_id); + bool UnloadComponentExtensionIME(const std::string& input_method_id); // Returns true if |input_method_id| is component extension ime id. - void IsComponentExtensionIMEId(const std::string& input_method_id); + bool IsComponentExtensionIMEId(const std::string& input_method_id); // Returns localized name of |input_method_id|. std::string GetName(const std::string& input_method_id); @@ -78,8 +78,16 @@ class CHROMEOS_EXPORT ComponentExtentionIMEManager { std::vector<std::string> ListIMEByLanguage(const std::string& language); private: + // Finds ComponentExtensionIME and EngineDescription associated with + // |input_method_id|. This function retruns true if it is found, otherwise + // returns false. |out_extension| and |out_engine| can be NULL. + bool FindEngineEntry(const std::string& input_method_id, + ComponentExtensionIME* out_extension, + IBusComponent::EngineDescription* out_engine); scoped_ptr<ComponentExtentionIMEManagerDelegate> delegate_; + std::vector<ComponentExtensionIME> component_extension_imes_; + DISALLOW_COPY_AND_ASSIGN(ComponentExtentionIMEManager); }; |