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

Unified Diff: chrome/browser/chromeos/input_method/mock_input_method_manager.h

Issue 419293002: IME refactoring: ChromeOS introduce input methods State. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. 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_manager.h
diff --git a/chrome/browser/chromeos/input_method/mock_input_method_manager.h b/chrome/browser/chromeos/input_method/mock_input_method_manager.h
index 9172adac21408764af83477c5419ac277e57ddc4..f6bb14c89313a1455c15aaaa946a6904a45b9e5a 100644
--- a/chrome/browser/chromeos/input_method/mock_input_method_manager.h
+++ b/chrome/browser/chromeos/input_method/mock_input_method_manager.h
@@ -18,6 +18,15 @@ namespace input_method {
// The mock implementation of InputMethodManager for testing.
class MockInputMethodManager : public InputMethodManager {
public:
+ class State : public InputMethodManager::State {
+ public:
+ State();
+
+ protected:
+ friend base::RefCounted<chromeos::input_method::InputMethodManager::State>;
+ virtual ~State();
+ };
+
MockInputMethodManager();
virtual ~MockInputMethodManager();
@@ -74,6 +83,11 @@ class MockInputMethodManager : public InputMethodManager {
virtual bool MigrateInputMethods(
std::vector<std::string>* input_method_ids) OVERRIDE;
+ virtual scoped_refptr<InputMethodManager::State> CreateNewState(
+ const std::string& debug_name) const OVERRIDE;
+ virtual void SetState(
+ scoped_refptr<InputMethodManager::State> state) OVERRIDE;
+
// Sets an input method ID which will be returned by GetCurrentInputMethod().
void SetCurrentInputMethodId(const std::string& input_method_id) {
current_input_method_id_ = input_method_id;

Powered by Google App Engine
This is Rietveld 408576698