OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #include "chromeos/ime/ime_keyboard_ozone.h" |
| 6 |
| 7 namespace chromeos { |
| 8 namespace input_method { |
| 9 |
| 10 |
| 11 ImeKeyboardOzone::ImeKeyboardOzone() { |
| 12 } |
| 13 |
| 14 |
| 15 ImeKeyboardOzone::~ImeKeyboardOzone() { |
| 16 } |
| 17 |
| 18 bool ImeKeyboardOzone::SetCurrentKeyboardLayoutByName( |
| 19 const std::string& layout_name) { |
| 20 // Call SetKeyMapping here. |
| 21 // TODO: parse out layout name and variation. |
| 22 last_layout_ = layout_name; |
| 23 return true; |
| 24 } |
| 25 |
| 26 bool ImeKeyboardOzone::ReapplyCurrentKeyboardLayout() { |
| 27 return SetCurrentKeyboardLayoutByName(last_layout_); |
| 28 } |
| 29 |
| 30 void ImeKeyboardOzone::SetCapsLockEnabled(bool enable_caps_lock) { |
| 31 // Call SetModifierStates here. |
| 32 ImeKeyboard::SetCapsLockEnabled(enable_caps_lock); |
| 33 } |
| 34 |
| 35 bool ImeKeyboardOzone::CapsLockIsEnabled() { |
| 36 // Call getModifierStates here. |
| 37 return ImeKeyboard::CapsLockIsEnabled(); |
| 38 } |
| 39 |
| 40 void ImeKeyboardOzone::ReapplyCurrentModifierLockStatus() { |
| 41 // call SetModifierStates here. |
| 42 } |
| 43 |
| 44 void ImeKeyboardOzone::DisableNumLock() { |
| 45 } |
| 46 |
| 47 bool ImeKeyboardOzone::SetAutoRepeatRate(const AutoRepeatRate& rate) { |
| 48 return true; |
| 49 } |
| 50 |
| 51 bool ImeKeyboardOzone::SetAutoRepeatEnabled(bool enabled) { |
| 52 return true; |
| 53 } |
| 54 |
| 55 // static |
| 56 ImeKeyboard* ImeKeyboard::Create() { return new ImeKeyboardOzone(); } |
| 57 |
| 58 } // namespace input_method |
| 59 } // namespace chromeos |
OLD | NEW |