diff options
author | alemate@chromium.org <alemate@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-23 17:11:27 +0000 |
---|---|---|
committer | alemate@chromium.org <alemate@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-23 17:11:27 +0000 |
commit | daf4b54f126919f0cdfefdfa772c42cc0fdf0290 (patch) | |
tree | 3aa0953dfd9828e7ac335d33172eb39f92533ab9 /chrome/browser/chromeos/input_method/mock_input_method_manager.h | |
parent | 348baf5a7b91cc4801dca5eae2921072055f35bc (diff) | |
download | chromium_src-daf4b54f126919f0cdfefdfa772c42cc0fdf0290.zip chromium_src-daf4b54f126919f0cdfefdfa772c42cc0fdf0290.tar.gz chromium_src-daf4b54f126919f0cdfefdfa772c42cc0fdf0290.tar.bz2 |
We should switch the keyboard layout to the layout the user set according to which user POD is selected.
BUG=152843
Review URL: https://chromiumcodereview.appspot.com/18856014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213144 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/input_method/mock_input_method_manager.h')
-rw-r--r-- | chrome/browser/chromeos/input_method/mock_input_method_manager.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/input_method/mock_input_method_manager.h b/chrome/browser/chromeos/input_method/mock_input_method_manager.h index e373707..aa001c8 100644 --- a/chrome/browser/chromeos/input_method/mock_input_method_manager.h +++ b/chrome/browser/chromeos/input_method/mock_input_method_manager.h @@ -31,11 +31,15 @@ class MockInputMethodManager : public InputMethodManager { GetSupportedInputMethods() const OVERRIDE; virtual scoped_ptr<InputMethodDescriptors> GetActiveInputMethods() const OVERRIDE; + virtual const std::vector<std::string>& GetActiveInputMethodIds() const + OVERRIDE; virtual size_t GetNumActiveInputMethods() const OVERRIDE; virtual void EnableLayouts(const std::string& language_code, const std::string& initial_layout) OVERRIDE; virtual bool EnableInputMethods( const std::vector<std::string>& new_active_input_method_ids) OVERRIDE; + virtual bool EnableInputMethod( + const std::string& new_active_input_method_id) OVERRIDE; virtual bool MigrateOldInputMethods( std::vector<std::string>* input_method_ids) OVERRIDE; virtual bool MigrateKoreanKeyboard( @@ -68,6 +72,7 @@ class MockInputMethodManager : public InputMethodManager { virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; virtual ComponentExtensionIMEManager* GetComponentExtensionIMEManager() OVERRIDE; + virtual bool IsFullLatinKeyboard(const std::string& layout) const OVERRIDE; // Sets an input method ID which will be returned by GetCurrentInputMethod(). void SetCurrentInputMethodId(const std::string& input_method_id) { @@ -91,6 +96,9 @@ class MockInputMethodManager : public InputMethodManager { InputMethodUtil util_; MockXKeyboard xkeyboard_; + // The active input method ids cache (actually default only) + std::vector<std::string> active_input_method_ids_; + DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); }; |