Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: chrome/browser/chromeos/input_method/mock_input_method_engine.cc

Issue 433163005: Refactoring for InputMethodEngine and InputMethodEventRouter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed browser_tests: ExtensionApiTest.InputImeApiBasic Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..37c12eddf03aed8c6c87f664c9771e7062c6cd59 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_.clear();
}
void MockInputMethodEngine::PropertyActivate(const std::string& property_name) {

Powered by Google App Engine
This is Rietveld 408576698