| OLD | NEW |
| 1 | 1 |
| 2 // Copyright 2014 The Chromium Authors. All rights reserved. | 2 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #include "chrome/browser/chromeos/input_method/mock_input_method_engine.h" | 6 #include "chrome/browser/chromeos/input_method/mock_input_method_engine.h" |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void MockInputMethodEngine::Disable() { | 64 void MockInputMethodEngine::Disable() { |
| 65 active_component_id_.clear(); | 65 active_component_id_.clear(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void MockInputMethodEngine::PropertyActivate(const std::string& property_name) { | 68 void MockInputMethodEngine::PropertyActivate(const std::string& property_name) { |
| 69 last_activated_property_ = property_name; | 69 last_activated_property_ = property_name; |
| 70 } | 70 } |
| 71 | 71 |
| 72 void MockInputMethodEngine::Reset() {} | 72 void MockInputMethodEngine::Reset() {} |
| 73 | 73 |
| 74 void MockInputMethodEngine::MaybeSwitchEngine() {} |
| 75 |
| 74 bool MockInputMethodEngine::IsInterestedInKeyEvent() const { | 76 bool MockInputMethodEngine::IsInterestedInKeyEvent() const { |
| 75 return true; | 77 return true; |
| 76 } | 78 } |
| 77 | 79 |
| 78 void MockInputMethodEngine::ProcessKeyEvent(const ui::KeyEvent& key_event, | 80 void MockInputMethodEngine::ProcessKeyEvent(const ui::KeyEvent& key_event, |
| 79 KeyEventDoneCallback& callback) {} | 81 KeyEventDoneCallback& callback) {} |
| 80 | 82 |
| 81 void MockInputMethodEngine::CandidateClicked(uint32_t index) {} | 83 void MockInputMethodEngine::CandidateClicked(uint32_t index) {} |
| 82 | 84 |
| 83 void MockInputMethodEngine::SetSurroundingText(const std::string& text, | 85 void MockInputMethodEngine::SetSurroundingText(const std::string& text, |
| 84 uint32_t cursor_pos, | 86 uint32_t cursor_pos, |
| 85 uint32_t anchor_pos, | 87 uint32_t anchor_pos, |
| 86 uint32_t offset_pos) {} | 88 uint32_t offset_pos) {} |
| 87 | 89 |
| 88 void MockInputMethodEngine::SetCompositionBounds( | 90 void MockInputMethodEngine::SetCompositionBounds( |
| 89 const std::vector<gfx::Rect>& bounds) {} | 91 const std::vector<gfx::Rect>& bounds) {} |
| 90 | 92 |
| 91 } // namespace chromeos | 93 } // namespace chromeos |
| OLD | NEW |