| Index: chromeos/ime/fake_keyboard_controller.cc
|
| diff --git a/chromeos/ime/fake_xkeyboard.cc b/chromeos/ime/fake_keyboard_controller.cc
|
| similarity index 51%
|
| rename from chromeos/ime/fake_xkeyboard.cc
|
| rename to chromeos/ime/fake_keyboard_controller.cc
|
| index 6a7d7a4158d9a1734ef991acdf53ad2779ea10ee..bd64a9fb73e2333f0bf6c205e75286c81d2953ec 100644
|
| --- a/chromeos/ime/fake_xkeyboard.cc
|
| +++ b/chromeos/ime/fake_keyboard_controller.cc
|
| @@ -2,56 +2,56 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chromeos/ime/fake_xkeyboard.h"
|
| +#include "chromeos/ime/fake_keyboard_controller.h"
|
|
|
| namespace chromeos {
|
| namespace input_method {
|
|
|
| -FakeXKeyboard::FakeXKeyboard()
|
| +FakeKeyboardController::FakeKeyboardController()
|
| : set_current_keyboard_layout_by_name_count_(0),
|
| caps_lock_is_enabled_(false),
|
| auto_repeat_is_enabled_(false) {
|
| }
|
|
|
| -bool FakeXKeyboard::SetCurrentKeyboardLayoutByName(
|
| +bool FakeKeyboardController::SetCurrentKeyboardLayoutByName(
|
| const std::string& layout_name) {
|
| ++set_current_keyboard_layout_by_name_count_;
|
| last_layout_ = layout_name;
|
| return true;
|
| }
|
|
|
| -bool FakeXKeyboard::ReapplyCurrentKeyboardLayout() {
|
| +bool FakeKeyboardController::ReapplyCurrentKeyboardLayout() {
|
| return true;
|
| }
|
|
|
| -void FakeXKeyboard::ReapplyCurrentModifierLockStatus() {
|
| +void FakeKeyboardController::ReapplyCurrentModifierLockStatus() {
|
| }
|
|
|
| -void FakeXKeyboard::DisableNumLock() {
|
| +void FakeKeyboardController::DisableNumLock() {
|
| }
|
|
|
| -void FakeXKeyboard::SetCapsLockEnabled(bool enable_caps_lock) {
|
| +void FakeKeyboardController::SetCapsLockEnabled(bool enable_caps_lock) {
|
| caps_lock_is_enabled_ = enable_caps_lock;
|
| }
|
|
|
| -bool FakeXKeyboard::CapsLockIsEnabled() {
|
| +bool FakeKeyboardController::CapsLockIsEnabled() {
|
| return caps_lock_is_enabled_;
|
| }
|
|
|
| -bool FakeXKeyboard::IsISOLevel5ShiftAvailable() const {
|
| +bool FakeKeyboardController::IsISOLevel5ShiftAvailable() const {
|
| return false;
|
| }
|
|
|
| -bool FakeXKeyboard::IsAltGrAvailable() const {
|
| +bool FakeKeyboardController::IsAltGrAvailable() const {
|
| return false;
|
| }
|
|
|
| -bool FakeXKeyboard::SetAutoRepeatEnabled(bool enabled) {
|
| +bool FakeKeyboardController::SetAutoRepeatEnabled(bool enabled) {
|
| auto_repeat_is_enabled_ = enabled;
|
| return true;
|
| }
|
|
|
| -bool FakeXKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) {
|
| +bool FakeKeyboardController::SetAutoRepeatRate(const AutoRepeatRate& rate) {
|
| last_auto_repeat_rate_ = rate;
|
| return true;
|
| }
|
|
|