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

Unified Diff: ash/system/chromeos/tray_caps_lock.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 | « no previous file | ash/system/chromeos/tray_caps_lock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/tray_caps_lock.h
diff --git a/ash/system/chromeos/tray_caps_lock.h b/ash/system/chromeos/tray_caps_lock.h
index f24ad6b33fa05b4b73f8eb91f4a33c59d3c88144..49251d235e764ab63204e0d428599ad4621871ff 100644
--- a/ash/system/chromeos/tray_caps_lock.h
+++ b/ash/system/chromeos/tray_caps_lock.h
@@ -6,6 +6,7 @@
#define ASH_SYSTEM_CHROMEOS_TRAY_CAPS_LOCK_H_
#include "ash/system/tray/tray_image_item.h"
+#include "chromeos/ime/xkeyboard.h"
#include "ui/events/event_handler.h"
namespace views {
@@ -17,13 +18,15 @@ namespace ash {
class CapsLockDefaultView;
class TrayCapsLock : public TrayImageItem,
- public ui::EventHandler {
+ public ui::EventHandler,
+ public chromeos::input_method::XKeyboard::Observer {
public:
explicit TrayCapsLock(SystemTray* system_tray);
virtual ~TrayCapsLock();
private:
- void OnCapsLockChanged(bool enabled);
+ // Overriden from chromeos::input_method::XKeyboard::Observer:
+ virtual void OnCapsLockChanged(bool enabled) OVERRIDE;
// ui::EventHandler:
virtual void OnKeyEvent(ui::KeyEvent* key) OVERRIDE;
« no previous file with comments | « no previous file | ash/system/chromeos/tray_caps_lock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698