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

Unified Diff: chromeos/ime/xkeyboard.h

Issue 231753002: Fixing caps lock problems under ChromeOS where the tray does not properly follow the real caps lock… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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: chromeos/ime/xkeyboard.h
diff --git a/chromeos/ime/xkeyboard.h b/chromeos/ime/xkeyboard.h
index b07e4f44ba3d8c4043f0872e2ab06b3021de4a2f..199338f78196a8316390b75fa7f7ceaaf9368217 100644
--- a/chromeos/ime/xkeyboard.h
+++ b/chromeos/ime/xkeyboard.h
@@ -36,8 +36,18 @@ class InputMethodUtil;
class CHROMEOS_EXPORT XKeyboard {
public:
+ class Observer {
+ public:
+ // Called when the caps lock state has changed.
+ virtual void OnCapsLockChanged() = 0;
+ };
+
virtual ~XKeyboard() {}
+ // Adds/removes observer.
+ virtual void AddObserver(Observer* observer) = 0;
+ virtual void RemoveObserver(Observer* observer) = 0;
+
// Sets the current keyboard layout to |layout_name|. This function does not
// change the current mapping of the modifier keys. Returns true on success.
virtual bool SetCurrentKeyboardLayoutByName(

Powered by Google App Engine
This is Rietveld 408576698