Add ICU message format support
[chromium-blink-merge.git] / ui / base / ime / chromeos / fake_ime_keyboard.cc
blob54fe8c02313204f2c8e3ce1b805ea22066c88067
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"
7 namespace chromeos {
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;
22 return true;
25 bool FakeImeKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) {
26 last_auto_repeat_rate_ = rate;
27 return true;
30 bool FakeImeKeyboard::SetAutoRepeatEnabled(bool enabled) {
31 auto_repeat_is_enabled_ = enabled;
32 return true;
35 bool FakeImeKeyboard::GetAutoRepeatEnabled() {
36 return auto_repeat_is_enabled_;
39 bool FakeImeKeyboard::ReapplyCurrentKeyboardLayout() {
40 return true;
43 void FakeImeKeyboard::ReapplyCurrentModifierLockStatus() {
46 void FakeImeKeyboard::DisableNumLock() {
49 bool FakeImeKeyboard::IsISOLevel5ShiftAvailable() const {
50 return false;
53 bool FakeImeKeyboard::IsAltGrAvailable() const {
54 return false;
57 } // namespace input_method
58 } // namespace chromeos