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

Unified Diff: chrome/browser/ui/input_method/input_method_engine_base.h

Issue 2597413002: Makes the InputMethodEngine can be switched per profile when the top-level browser window is switch… (Closed)
Patch Set: . Created 4 years 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/ui/input_method/input_method_engine_base.h
diff --git a/chrome/browser/ui/input_method/input_method_engine_base.h b/chrome/browser/ui/input_method/input_method_engine_base.h
index 8d7899a1e33938b871ee45ab3e2bb756e39d2634..9076c73e5c8017cbd06b59c388bf7b7150d9eaf8 100644
--- a/chrome/browser/ui/input_method/input_method_engine_base.h
+++ b/chrome/browser/ui/input_method/input_method_engine_base.h
@@ -104,6 +104,9 @@ class InputMethodEngineBase : virtual public ui::IMEEngineHandlerInterface {
int anchor_pos,
int offset_pos) = 0;
+ // Called when the engine's MaybeSwitchEngine is called.
+ virtual void OnRequestEngineSwitch() = 0;
+
#if defined(OS_CHROMEOS)
// Called when an InputContext's properties change while it is focused.
@@ -137,6 +140,7 @@ class InputMethodEngineBase : virtual public ui::IMEEngineHandlerInterface {
void Enable(const std::string& component_id) override;
void Disable() override;
void Reset() override;
+ void MaybeSwitchEngine() override;
void ProcessKeyEvent(const ui::KeyEvent& key_event,
KeyEventDoneCallback& callback) override;
void SetSurroundingText(const std::string& text,

Powered by Google App Engine
This is Rietveld 408576698