Do not assume that the orientation is PORTRAIT by default.
[chromium-blink-merge.git] / chromeos / ime / fake_xkeyboard.cc
blob45bd5bf274f502301fe7bfb9853230c220afab3b
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chromeos/ime/fake_xkeyboard.h"
7 namespace chromeos {
8 namespace input_method {
10 FakeXKeyboard::FakeXKeyboard()
11 : set_current_keyboard_layout_by_name_count_(0),
12 caps_lock_is_enabled_(false),
13 auto_repeat_is_enabled_(false) {
16 bool FakeXKeyboard::SetCurrentKeyboardLayoutByName(
17 const std::string& layout_name) {
18 ++set_current_keyboard_layout_by_name_count_;
19 last_layout_ = layout_name;
20 return true;
23 bool FakeXKeyboard::ReapplyCurrentKeyboardLayout() {
24 return true;
27 void FakeXKeyboard::ReapplyCurrentModifierLockStatus() {
30 void FakeXKeyboard::DisableNumLock() {
33 void FakeXKeyboard::SetCapsLockEnabled(bool enable_caps_lock) {
34 caps_lock_is_enabled_ = enable_caps_lock;
37 bool FakeXKeyboard::CapsLockIsEnabled() {
38 return caps_lock_is_enabled_;
41 bool FakeXKeyboard::SetAutoRepeatEnabled(bool enabled) {
42 auto_repeat_is_enabled_ = enabled;
43 return true;
46 bool FakeXKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) {
47 last_auto_repeat_rate_ = rate;
48 return true;
51 } // namespace input_method
52 } // namespace chromeos