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

Unified Diff: ui/base/ime/chromeos/input_method_manager.h

Issue 1523593002: Add an option in language settings for activating the IME menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« chrome/common/pref_names.cc ('K') | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/chromeos/input_method_manager.h
diff --git a/ui/base/ime/chromeos/input_method_manager.h b/ui/base/ime/chromeos/input_method_manager.h
index 2f992ce5716d296201f4bdfb342fcbee5bae52af..598aafa9ad8ad77cffd531f409a91dc493aab5dd 100644
--- a/ui/base/ime/chromeos/input_method_manager.h
+++ b/ui/base/ime/chromeos/input_method_manager.h
@@ -67,6 +67,17 @@ class UI_BASE_IME_EXPORT InputMethodManager {
virtual void CandidateWindowClosed(InputMethodManager* manager) = 0;
};
+ // ImeMenuObserver is notified of events related to the IME menu on the system
+ // tray.
+ class ImeMenuObserver {
+ public:
+ virtual ~ImeMenuObserver() {}
+ // Called when the current input method is changed. |show_message|
+ // indicates whether the user should be notified of this change.
+ virtual void ImeMenuActivated(InputMethodManager* manager) = 0;
+ virtual void ImeMenuDeactivated(InputMethodManager* manager) = 0;
+ };
+
class State : public base::RefCounted<InputMethodManager::State> {
public:
// Returns a copy of state.
@@ -201,9 +212,11 @@ class UI_BASE_IME_EXPORT InputMethodManager {
virtual void AddObserver(Observer* observer) = 0;
virtual void AddCandidateWindowObserver(
CandidateWindowObserver* observer) = 0;
+ virtual void AddImeMenuObserver(ImeMenuObserver* observer) = 0;
virtual void RemoveObserver(Observer* observer) = 0;
virtual void RemoveCandidateWindowObserver(
CandidateWindowObserver* observer) = 0;
+ virtual void RemoveImeMenuObserver(ImeMenuObserver* observer) = 0;
// Returns all input methods that are supported, including ones not active.
// This function never returns NULL. Note that input method extensions are NOT
@@ -243,6 +256,12 @@ class UI_BASE_IME_EXPORT InputMethodManager {
// Replaces active state.
virtual void SetState(scoped_refptr<State> state) = 0;
+
+ // Acitvated the IME Menu.
+ virtual void ImeMenuActivated() = 0;
+
+ // Deactivated the IME Menu.
+ virtual void ImeMenuDeactivated() = 0;
};
} // namespace input_method
« chrome/common/pref_names.cc ('K') | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698