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

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
« no previous file with comments | « chromeos/ime/fake_xkeyboard.cc ('k') | chromeos/ime/xkeyboard.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/ime/xkeyboard.h
diff --git a/chromeos/ime/xkeyboard.h b/chromeos/ime/xkeyboard.h
index b07e4f44ba3d8c4043f0872e2ab06b3021de4a2f..ad2cbc77d08d2627effa38ae943dd32289d1e9eb 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(bool enabled) = 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(
« no previous file with comments | « chromeos/ime/fake_xkeyboard.cc ('k') | chromeos/ime/xkeyboard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698