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 "ui/base/ime/chromeos/fake_ime_keyboard.h"
8 namespace input_method
{
10 FakeImeKeyboard::FakeImeKeyboard()
11 : set_current_keyboard_layout_by_name_count_(0),
12 auto_repeat_is_enabled_(false) {
15 FakeImeKeyboard::~FakeImeKeyboard() {
18 bool FakeImeKeyboard::SetCurrentKeyboardLayoutByName(
19 const std::string
& layout_name
) {
20 ++set_current_keyboard_layout_by_name_count_
;
21 last_layout_
= layout_name
;
25 bool FakeImeKeyboard::SetAutoRepeatRate(const AutoRepeatRate
& rate
) {
26 last_auto_repeat_rate_
= rate
;
30 bool FakeImeKeyboard::SetAutoRepeatEnabled(bool enabled
) {
31 auto_repeat_is_enabled_
= enabled
;
35 bool FakeImeKeyboard::GetAutoRepeatEnabled() {
36 return auto_repeat_is_enabled_
;
39 bool FakeImeKeyboard::ReapplyCurrentKeyboardLayout() {
43 void FakeImeKeyboard::ReapplyCurrentModifierLockStatus() {
46 void FakeImeKeyboard::DisableNumLock() {
49 bool FakeImeKeyboard::IsISOLevel5ShiftAvailable() const {
53 bool FakeImeKeyboard::IsAltGrAvailable() const {
57 } // namespace input_method
58 } // namespace chromeos