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

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

Issue 1136463005: Supports multiple profile in Chrome OS IMF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased. Created 5 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/input_method/input_method_engine.h
diff --git a/chrome/browser/chromeos/input_method/input_method_engine.h b/chrome/browser/chromeos/input_method/input_method_engine.h
index d475a43990b48c38c9d8537248f6bd2439cfca70..e0ae7e855e1aeede04842e7b9a47da75f92f2e8b 100644
--- a/chrome/browser/chromeos/input_method/input_method_engine.h
+++ b/chrome/browser/chromeos/input_method/input_method_engine.h
@@ -39,7 +39,8 @@ class InputMethodEngine : public InputMethodEngineInterface {
~InputMethodEngine() override;
void Initialize(scoped_ptr<InputMethodEngineInterface::Observer> observer,
- const char* extension_id);
+ const char* extension_id,
+ Profile* profile);
// InputMethodEngineInterface overrides.
const std::string& GetActiveComponentId() const override;
@@ -96,6 +97,7 @@ class InputMethodEngine : public InputMethodEngineInterface {
bool IsInterestedInKeyEvent() const override;
private:
+ bool CheckProfile() const;
// Converts MenuItem to InputMethodMenuItem.
void MenuItemToProperty(const MenuItem& item,
ui::ime::InputMethodMenuItem* property);
@@ -142,6 +144,8 @@ class InputMethodEngine : public InputMethodEngineInterface {
// Used with SendKeyEvents and ProcessKeyEvent to check if the key event
// sent to ProcessKeyEvent is sent by SendKeyEvents.
const ui::KeyEvent* sent_key_event_;
+
+ Profile* profile_;
};
} // namespace chromeos
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698