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

Unified Diff: chromeos/ime/fake_xkeyboard.cc

Issue 189663009: cros: Simplify chromeos::input_method::XKeyboard interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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/fake_xkeyboard.cc
diff --git a/chromeos/ime/fake_xkeyboard.cc b/chromeos/ime/fake_xkeyboard.cc
index 7cc10b5e593806fa010b7937550583af6b5cfd46..45bd5bf274f502301fe7bfb9853230c220afab3b 100644
--- a/chromeos/ime/fake_xkeyboard.cc
+++ b/chromeos/ime/fake_xkeyboard.cc
@@ -10,7 +10,6 @@ namespace input_method {
FakeXKeyboard::FakeXKeyboard()
: set_current_keyboard_layout_by_name_count_(0),
caps_lock_is_enabled_(false),
- num_lock_is_enabled_(false),
auto_repeat_is_enabled_(false) {
}
@@ -28,42 +27,17 @@ bool FakeXKeyboard::ReapplyCurrentKeyboardLayout() {
void FakeXKeyboard::ReapplyCurrentModifierLockStatus() {
}
-void FakeXKeyboard::SetLockedModifiers(ModifierLockStatus new_caps_lock_status,
- ModifierLockStatus new_num_lock_status) {
- if (new_caps_lock_status != kDontChange) {
- caps_lock_is_enabled_ =
- (new_caps_lock_status == kEnableLock) ? true : false;
- }
- if (new_num_lock_status != kDontChange)
- num_lock_is_enabled_ = (new_num_lock_status == kEnableLock) ? true : false;
-}
-
-void FakeXKeyboard::SetNumLockEnabled(bool enable_num_lock) {
- num_lock_is_enabled_ = enable_num_lock;
+void FakeXKeyboard::DisableNumLock() {
}
void FakeXKeyboard::SetCapsLockEnabled(bool enable_caps_lock) {
caps_lock_is_enabled_ = enable_caps_lock;
}
-bool FakeXKeyboard::NumLockIsEnabled() {
- return num_lock_is_enabled_;
-}
-
bool FakeXKeyboard::CapsLockIsEnabled() {
return caps_lock_is_enabled_;
}
-unsigned int FakeXKeyboard::GetNumLockMask() {
- return 1;
-}
-
-void FakeXKeyboard::GetLockedModifiers(bool* out_caps_lock_enabled,
- bool* out_num_lock_enabled) {
- *out_caps_lock_enabled = caps_lock_is_enabled_;
- *out_num_lock_enabled = num_lock_is_enabled_;
-}
-
bool FakeXKeyboard::SetAutoRepeatEnabled(bool enabled) {
auto_repeat_is_enabled_ = enabled;
return true;

Powered by Google App Engine
This is Rietveld 408576698