MockInputMethodManager::MockInputMethodManager()
: add_observer_count_(0),
remove_observer_count_(0),
- util_(&delegate_, whitelist_.GetSupportedInputMethods()) {
+ util_(&delegate_),
+ mod3_used_(false) {
active_input_method_ids_.push_back("xkb:us::eng");
}
MockInputMethodManager::~MockInputMethodManager() {
}
+InputMethodManager::State MockInputMethodManager::GetState() {
+ return InputMethodManager::STATE_BROWSER_SCREEN;
+}
+
void MockInputMethodManager::AddObserver(
InputMethodManager::Observer* observer) {
++add_observer_count_;
const std::string& input_method_id) {
}
-void MockInputMethodManager::ActivateInputMethodProperty(
+void MockInputMethodManager::ActivateInputMethodMenuItem(
const std::string& key) {
}
void MockInputMethodManager::AddInputMethodExtension(
- const std::string& id,
+ const std::string& extension_id,
+ const InputMethodDescriptors& descriptors,
InputMethodEngineInterface* instance) {
}
-void MockInputMethodManager::RemoveInputMethodExtension(const std::string& id) {
+void MockInputMethodManager::RemoveInputMethodExtension(
+ const std::string& extension_id) {
}
void MockInputMethodManager::GetInputMethodExtensions(
void MockInputMethodManager::SetInputMethodLoginDefault() {
}
+void MockInputMethodManager::SetInputMethodLoginDefaultFromVPD(
+ const std::string& locale, const std::string& layout) {
+}
+
bool MockInputMethodManager::SwitchToNextInputMethod() {
return true;
}
return descriptor;
}
-InputMethodPropertyList
-MockInputMethodManager::GetCurrentInputMethodProperties() const {
- return InputMethodPropertyList();
+bool MockInputMethodManager::IsISOLevel5ShiftUsedByCurrentInputMethod() const {
+ return mod3_used_;
}
-void MockInputMethodManager::SetCurrentInputMethodProperties(
- const InputMethodPropertyList& property_list) {
+bool MockInputMethodManager::IsAltGrUsedByCurrentInputMethod() const {
+ return false;
}
-XKeyboard* MockInputMethodManager::GetXKeyboard() {
- return &xkeyboard_;
-}
+ImeKeyboard* MockInputMethodManager::GetImeKeyboard() { return &keyboard_; }
InputMethodUtil* MockInputMethodManager::GetInputMethodUtil() {
return &util_;
ComponentExtensionIMEManager*
MockInputMethodManager::GetComponentExtensionIMEManager() {
- return NULL;
+ return comp_ime_manager_.get();
+}
+
+void MockInputMethodManager::SetComponentExtensionIMEManager(
+ scoped_ptr<ComponentExtensionIMEManager> comp_ime_manager) {
+ comp_ime_manager_ = comp_ime_manager.Pass();
}
void MockInputMethodManager::set_application_locale(const std::string& value) {
const std::string& layout) const {
return true;
}
+
+bool MockInputMethodManager::MigrateInputMethods(
+ std::vector<std::string>* input_method_ids) {
+ return false;
+}
+
} // namespace input_method
} // namespace chromeos