Chromium Code Reviews| Index: chrome/browser/chromeos/input_method/mock_input_method_engine.cc |
| diff --git a/chrome/browser/chromeos/input_method/mock_input_method_engine.cc b/chrome/browser/chromeos/input_method/mock_input_method_engine.cc |
| index 2c3228a9faea7e33cde720dd8425203fe6511bfc..17ba944d67c9bb67ed685a7b1b78c65dd3d07037 100644 |
| --- a/chrome/browser/chromeos/input_method/mock_input_method_engine.cc |
| +++ b/chrome/browser/chromeos/input_method/mock_input_method_engine.cc |
| @@ -8,18 +8,12 @@ |
| namespace chromeos { |
| -MockInputMethodEngine::MockInputMethodEngine( |
| - const input_method::InputMethodDescriptor& descriptor) |
| - : descriptor_(descriptor) {} |
| +MockInputMethodEngine::MockInputMethodEngine() {} |
| MockInputMethodEngine::~MockInputMethodEngine() {} |
| -const input_method::InputMethodDescriptor& |
| -MockInputMethodEngine::GetDescriptor() const { |
| - return descriptor_; |
| -} |
| - |
| -void MockInputMethodEngine::NotifyImeReady() { |
| +const std::string& MockInputMethodEngine::GetActiveComponentId() const { |
| + return active_component_id_; |
| } |
| bool MockInputMethodEngine::SetComposition( |
| @@ -107,10 +101,12 @@ void MockInputMethodEngine::FocusIn( |
| void MockInputMethodEngine::FocusOut() { |
| } |
| -void MockInputMethodEngine::Enable() { |
| +void MockInputMethodEngine::Enable(const std::string& component_id) { |
| + active_component_id_ = component_id; |
| } |
| void MockInputMethodEngine::Disable() { |
| + active_component_id_ = ""; |
|
Yuki
2014/08/06 04:42:24
active_compoenent_id_.clear() could be slightly be
Shu Chen
2014/08/06 05:45:03
Done.
|
| } |
| void MockInputMethodEngine::PropertyActivate(const std::string& property_name) { |