Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: chromeos/ime/ime_keyboard_ozone.cc

Issue 693733002: Adds ozone support for ime keyboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/ime/ime_keyboard_ozone.h ('k') | chromeos/ime/ime_keyboard_x11.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/ime/ime_keyboard_ozone.cc
diff --git a/chromeos/ime/ime_keyboard_ozone.cc b/chromeos/ime/ime_keyboard_ozone.cc
index 95107988c9b0c2dba80306dfe35115659d4c5f2b..c5e869bf8304ee5dad8acb0d96e6a4ffb2a02c8b 100644
--- a/chromeos/ime/ime_keyboard_ozone.cc
+++ b/chromeos/ime/ime_keyboard_ozone.cc
@@ -2,16 +2,58 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chromeos/ime/fake_ime_keyboard.h"
-#include "chromeos/ime/ime_keyboard.h"
+#include "chromeos/ime/ime_keyboard_ozone.h"
namespace chromeos {
namespace input_method {
-// static
-ImeKeyboard* ImeKeyboard::Create() {
- return new FakeImeKeyboard;
+
+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
« no previous file with comments | « chromeos/ime/ime_keyboard_ozone.h ('k') | chromeos/ime/ime_keyboard_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698