diff options
Diffstat (limited to 'chrome/browser/chromeos/input_method/input_method_manager_impl.h')
-rw-r--r-- | chrome/browser/chromeos/input_method/input_method_manager_impl.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 5064bef..d357c29 100644 --- a/chrome/browser/chromeos/input_method/input_method_manager_impl.h +++ b/chrome/browser/chromeos/input_method/input_method_manager_impl.h @@ -14,6 +14,7 @@ #include "base/threading/thread_checker.h" #include "chrome/browser/chromeos/input_method/candidate_window_controller.h" #include "chrome/browser/chromeos/input_method/input_method_util.h" +#include "chrome/browser/profiles/profile.h" #include "chromeos/ime/input_method_manager.h" #include "chromeos/ime/input_method_whitelist.h" @@ -159,6 +160,9 @@ 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. @@ -212,6 +216,13 @@ 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_; + DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); }; |