| Index: chromeos/ime/ime_keyboard.cc
|
| diff --git a/chromeos/ime/ime_keyboard.cc b/chromeos/ime/ime_keyboard.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e91f02c8011e3855ec33b50cbb2816a346aeedab
|
| --- /dev/null
|
| +++ b/chromeos/ime/ime_keyboard.cc
|
| @@ -0,0 +1,82 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chromeos/ime/ime_keyboard.h"
|
| +
|
| +namespace chromeos {
|
| +namespace input_method {
|
| +
|
| +
|
| +ImeKeyboard::ImeKeyboard()
|
| + : caps_lock_is_enabled_(false) {
|
| +}
|
| +
|
| +ImeKeyboard::~ImeKeyboard() {
|
| +}
|
| +
|
| +bool ImeKeyboard::SetCurrentKeyboardLayoutByName(
|
| + const std::string& layout_name) {
|
| + last_layout_ = layout_name;
|
| +}
|
| +
|
| +void ImeKeyboard::AddObserver(Observer* observer) {
|
| + observers_.AddObserver(observer);
|
| +}
|
| +
|
| +void ImeKeyboard::RemoveObserver(Observer* observer) {
|
| + observers_.RemoveObserver(observer);
|
| +}
|
| +
|
| +bool ImeKeyboard::ReapplyCurrentKeyboardLayout() {
|
| + return true;
|
| +}
|
| +
|
| +void ImeKeyboard::ReapplyCurrentModifierLockStatus() {
|
| +}
|
| +
|
| +void ImeKeyboard::DisableNumLock() {
|
| +}
|
| +
|
| +void ImeKeyboard::SetCapsLockEnabled(bool enable_caps_lock) {
|
| + bool old_state = caps_lock_is_enabled_;
|
| + caps_lock_is_enabled_ = enable_caps_lock;
|
| + if (old_state != enable_caps_lock) {
|
| + FOR_EACH_OBSERVER(ImeKeyboard::Observer, observers_,
|
| + OnCapsLockChanged(enable_caps_lock));
|
| + }
|
| +}
|
| +
|
| +bool ImeKeyboard::ReapplyCurrentKeyboardLayout() {
|
| + return true;
|
| +}
|
| +
|
| +void ImeKeyboard::ReapplyCurrentModifierLockStatus() {
|
| +}
|
| +
|
| +void ImeKeyboard::DisableNumLock() {
|
| +}
|
| +
|
| +
|
| +bool ImeKeyboard::CapsLockIsEnabled() {
|
| + return caps_lock_is_enabled_;
|
| +}
|
| +
|
| +bool ImeKeyboard::IsISOLevel5ShiftAvailable() const {
|
| + return false;
|
| +}
|
| +
|
| +bool ImeKeyboard::IsAltGrAvailable() const {
|
| + return false;
|
| +}
|
| +
|
| +bool ImeKeyboard::SetAutoRepeatEnabled(bool enabled) {
|
| + return true;
|
| +}
|
| +
|
| +bool ImeKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) {
|
| + return true;
|
| +}
|
| +
|
| +} // namespace input_method
|
| +} // namespace chromeos
|
|
|