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

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

Issue 433163005: Refactoring for InputMethodEngine and InputMethodEventRouter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed a bug. 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/input_method_manager_impl.h
diff --git a/chrome/browser/chromeos/input_method/input_method_manager_impl.h b/chrome/browser/chromeos/input_method/input_method_manager_impl.h
index 19847760d7a3ae86d83c5b15bf86e177e909eb83..31c27d3632d6458a4f02271a68f1adf2a3ae4df3 100644
--- a/chrome/browser/chromeos/input_method/input_method_manager_impl.h
+++ b/chrome/browser/chromeos/input_method/input_method_manager_impl.h
@@ -65,9 +65,11 @@ class InputMethodManagerImpl : public InputMethodManager,
virtual void ChangeInputMethod(const std::string& input_method_id) OVERRIDE;
virtual void ActivateInputMethodMenuItem(const std::string& key) OVERRIDE;
virtual void AddInputMethodExtension(
- const std::string& id,
+ const std::string& extension_id,
+ const InputMethodDescriptors& descriptors,
InputMethodEngineInterface* instance) OVERRIDE;
- virtual void RemoveInputMethodExtension(const std::string& id) OVERRIDE;
+ virtual void RemoveInputMethodExtension(
+ const std::string& extension_id) OVERRIDE;
virtual void GetInputMethodExtensions(
InputMethodDescriptors* result) OVERRIDE;
virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) OVERRIDE;
@@ -152,9 +154,6 @@ class InputMethodManagerImpl : public InputMethodManager,
// (after list of enabled input methods has been updated)
void ReconfigureIMFramework();
- // Gets the current active user profile.
- Profile* GetProfile() const;
-
scoped_ptr<InputMethodDelegate> delegate_;
// The current browser status.
@@ -203,12 +202,7 @@ class InputMethodManagerImpl : public InputMethodManager,
base::WeakPtrFactory<InputMethodManagerImpl> weak_ptr_factory_;
- // The engine map:
- // { Profile : { input_method_id : Engine } }.
- typedef std::map<std::string, InputMethodEngineInterface*>
- EngineMap;
- typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap;
- ProfileEngineMap profile_engine_map_;
+ std::map<std::string, InputMethodEngineInterface*> engine_map_;
Yuki 2014/08/05 07:57:18 The original comment was very useful, and it's sti
Shu Chen 2014/08/05 14:04:31 Done.
DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698