Index: chromeos/ime/ime_keyboard_ozone.cc |
diff --git a/chromeos/ime/ime_keyboard_ozone.cc b/chromeos/ime/ime_keyboard_ozone.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c5e869bf8304ee5dad8acb0d96e6a4ffb2a02c8b |
--- /dev/null |
+++ b/chromeos/ime/ime_keyboard_ozone.cc |
@@ -0,0 +1,59 @@ |
+// 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_ozone.h" |
+ |
+namespace chromeos { |
+namespace input_method { |
+ |
+ |
+ImeKeyboardOzone::ImeKeyboardOzone() { |
+} |
+ |
+ |
+ImeKeyboardOzone::~ImeKeyboardOzone() { |
+} |
+ |
+bool ImeKeyboardOzone::SetCurrentKeyboardLayoutByName( |
+ const std::string& layout_name) { |
+ // Call SetKeyMapping here. |
+ // TODO: parse out layout name and variation. |
+ last_layout_ = layout_name; |
+ return true; |
+} |
+ |
+bool ImeKeyboardOzone::ReapplyCurrentKeyboardLayout() { |
+ return SetCurrentKeyboardLayoutByName(last_layout_); |
+} |
+ |
+void ImeKeyboardOzone::SetCapsLockEnabled(bool enable_caps_lock) { |
+ // Call SetModifierStates here. |
+ ImeKeyboard::SetCapsLockEnabled(enable_caps_lock); |
+} |
+ |
+bool ImeKeyboardOzone::CapsLockIsEnabled() { |
+ // Call getModifierStates here. |
+ return ImeKeyboard::CapsLockIsEnabled(); |
+} |
+ |
+void ImeKeyboardOzone::ReapplyCurrentModifierLockStatus() { |
+ // call SetModifierStates here. |
+} |
+ |
+void ImeKeyboardOzone::DisableNumLock() { |
+} |
+ |
+bool ImeKeyboardOzone::SetAutoRepeatRate(const AutoRepeatRate& rate) { |
+ return true; |
+} |
+ |
+bool ImeKeyboardOzone::SetAutoRepeatEnabled(bool enabled) { |
+ return true; |
+} |
+ |
+// static |
+ImeKeyboard* ImeKeyboard::Create() { return new ImeKeyboardOzone(); } |
+ |
+} // namespace input_method |
+} // namespace chromeos |