| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 8 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
| 9 #include "chromeos/ime/fake_input_method_delegate.h" | 9 #include "chromeos/ime/fake_input_method_delegate.h" |
| 10 #include "chromeos/ime/input_method_manager.h" | 10 #include "chromeos/ime/input_method_manager.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 virtual bool SwitchToPreviousInputMethod( | 66 virtual bool SwitchToPreviousInputMethod( |
| 67 const ui::Accelerator& accelerator) OVERRIDE; | 67 const ui::Accelerator& accelerator) OVERRIDE; |
| 68 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; | 68 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) OVERRIDE; |
| 69 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; | 69 virtual InputMethodDescriptor GetCurrentInputMethod() const OVERRIDE; |
| 70 virtual InputMethodPropertyList | 70 virtual InputMethodPropertyList |
| 71 GetCurrentInputMethodProperties() const OVERRIDE; | 71 GetCurrentInputMethodProperties() const OVERRIDE; |
| 72 virtual XKeyboard* GetXKeyboard() OVERRIDE; | 72 virtual XKeyboard* GetXKeyboard() OVERRIDE; |
| 73 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; | 73 virtual InputMethodUtil* GetInputMethodUtil() OVERRIDE; |
| 74 virtual ComponentExtensionIMEManager* | 74 virtual ComponentExtensionIMEManager* |
| 75 GetComponentExtensionIMEManager() OVERRIDE; | 75 GetComponentExtensionIMEManager() OVERRIDE; |
| 76 virtual bool IsFullLatinKeyboard(const std::string& layout) const OVERRIDE; | 76 virtual bool IsLoginKeyboard(const std::string& layout) const OVERRIDE; |
| 77 | 77 |
| 78 // Sets an input method ID which will be returned by GetCurrentInputMethod(). | 78 // Sets an input method ID which will be returned by GetCurrentInputMethod(). |
| 79 void SetCurrentInputMethodId(const std::string& input_method_id) { | 79 void SetCurrentInputMethodId(const std::string& input_method_id) { |
| 80 current_input_method_id_ = input_method_id; | 80 current_input_method_id_ = input_method_id; |
| 81 } | 81 } |
| 82 | 82 |
| 83 // Set values that will be provided to the InputMethodUtil. | 83 // Set values that will be provided to the InputMethodUtil. |
| 84 void set_application_locale(const std::string& value); | 84 void set_application_locale(const std::string& value); |
| 85 void set_hardware_keyboard_layout(const std::string& value); | 85 void set_hardware_keyboard_layout(const std::string& value); |
| 86 | 86 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 100 // The active input method ids cache (actually default only) | 100 // The active input method ids cache (actually default only) |
| 101 std::vector<std::string> active_input_method_ids_; | 101 std::vector<std::string> active_input_method_ids_; |
| 102 | 102 |
| 103 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); | 103 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace input_method | 106 } // namespace input_method |
| 107 } // namespace chromeos | 107 } // namespace chromeos |
| 108 | 108 |
| 109 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ | 109 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_MANAGER_H_ |
| OLD | NEW |