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

Unified Diff: chromeos/ime/ime_keyboard.cc

Issue 683773002: Adds ozone support for ime keyboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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
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

Powered by Google App Engine
This is Rietveld 408576698