use non-deprecated version of installPixels
[chromium-blink-merge.git] / chromeos / ime / fake_ime_keyboard.cc
blob4b8c71960f760fadb4461cace496930cc97aab74
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_ime_keyboard.h"
7 namespace chromeos {
8 namespace input_method {
10 FakeImeKeyboard::FakeImeKeyboard()
11 : set_current_keyboard_layout_by_name_count_(0),
12 caps_lock_is_enabled_(false),
13 auto_repeat_is_enabled_(false) {
16 void FakeImeKeyboard::AddObserver(Observer* observer) {
19 void FakeImeKeyboard::RemoveObserver(Observer* observer) {
22 bool FakeImeKeyboard::SetCurrentKeyboardLayoutByName(
23 const std::string& layout_name) {
24 ++set_current_keyboard_layout_by_name_count_;
25 last_layout_ = layout_name;
26 return true;
29 bool FakeImeKeyboard::ReapplyCurrentKeyboardLayout() {
30 return true;
33 void FakeImeKeyboard::ReapplyCurrentModifierLockStatus() {
36 void FakeImeKeyboard::DisableNumLock() {
39 void FakeImeKeyboard::SetCapsLockEnabled(bool enable_caps_lock) {
40 caps_lock_is_enabled_ = enable_caps_lock;
43 bool FakeImeKeyboard::CapsLockIsEnabled() {
44 return caps_lock_is_enabled_;
47 bool FakeImeKeyboard::IsISOLevel5ShiftAvailable() const {
48 return false;
51 bool FakeImeKeyboard::IsAltGrAvailable() const {
52 return false;
55 bool FakeImeKeyboard::SetAutoRepeatEnabled(bool enabled) {
56 auto_repeat_is_enabled_ = enabled;
57 return true;
60 bool FakeImeKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) {
61 last_auto_repeat_rate_ = rate;
62 return true;
65 } // namespace input_method
66 } // namespace chromeos