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

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

Issue 1552743003: Add chrome.inputMethodPrivate.onImeMenuActivationChanged API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase with master Created 4 years, 11 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: 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 2f7012331af4c78d1263a3080b4008c6d8749efc..339bf8132efdde33685e823296b3ba797de0ab92 100644
--- a/ui/base/ime/chromeos/input_method_manager.h
+++ b/ui/base/ime/chromeos/input_method_manager.h
@@ -69,6 +69,15 @@ class UI_BASE_IME_EXPORT InputMethodManager {
virtual void CandidateWindowClosed(InputMethodManager* manager) = 0;
};
+ // ImeMenuObserver is notified of events related to the IME menu on the shelf
+ // bar.
+ class ImeMenuObserver {
+ public:
+ virtual ~ImeMenuObserver() {}
stevenjb 2016/01/20 18:33:43 blank line
Azure Wei 2016/01/21 10:25:07 Done.
+ // Called when the IME menu is activated or deactivated.
+ virtual void ImeMenuActivationChanged(bool is_active) = 0;
stevenjb 2016/01/20 18:33:43 private: DISALLOW_ASSIGN(...)
Azure Wei 2016/01/21 10:25:07 Done.
+ };
+
class State : public base::RefCounted<InputMethodManager::State> {
public:
// Returns a copy of state.
@@ -203,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
@@ -245,6 +256,9 @@ class UI_BASE_IME_EXPORT InputMethodManager {
// Replaces active state.
virtual void SetState(scoped_refptr<State> state) = 0;
+
+ // Activates or deactivates the IME Menu.
+ virtual void ImeMenuActivationChanged(bool is_active) = 0;
};
} // namespace input_method

Powered by Google App Engine
This is Rietveld 408576698