OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/base/ime/chromeos/ime_keyboard_ozone.h" | 5 #include "ui/base/ime/chromeos/ime_keyboard_ozone.h" |
6 #include "ui/events/ozone/layout/keyboard_layout_engine.h" | 6 #include "ui/events/ozone/layout/keyboard_layout_engine.h" |
7 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" | 7 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" |
8 | 8 |
9 | 9 |
10 #include "ui/ozone/public/input_controller.h" | 10 #include "ui/ozone/public/input_controller.h" |
(...skipping 17 matching lines...) Expand all Loading... | |
28 GetKeyboardLayoutEngine(); | 28 GetKeyboardLayoutEngine(); |
29 keyboard_engine->SetCurrentLayoutByName(layout_name); | 29 keyboard_engine->SetCurrentLayoutByName(layout_name); |
30 return true; | 30 return true; |
31 } | 31 } |
32 | 32 |
33 bool ImeKeyboardOzone::ReapplyCurrentKeyboardLayout() { | 33 bool ImeKeyboardOzone::ReapplyCurrentKeyboardLayout() { |
34 return SetCurrentKeyboardLayoutByName(last_layout_); | 34 return SetCurrentKeyboardLayoutByName(last_layout_); |
35 } | 35 } |
36 | 36 |
37 void ImeKeyboardOzone::SetCapsLockEnabled(bool enable_caps_lock) { | 37 void ImeKeyboardOzone::SetCapsLockEnabled(bool enable_caps_lock) { |
38 ImeKeyboard::SetCapsLockEnabled(enable_caps_lock); | |
Shu Chen
2015/01/27 03:51:10
Please add comment that this is for notifying caps
kpschoedel
2015/01/27 17:12:48
Done.
| |
38 input_controller_->SetCapsLockEnabled(enable_caps_lock); | 39 input_controller_->SetCapsLockEnabled(enable_caps_lock); |
39 } | 40 } |
40 | 41 |
41 bool ImeKeyboardOzone::CapsLockIsEnabled() { | 42 bool ImeKeyboardOzone::CapsLockIsEnabled() { |
42 return input_controller_->IsCapsLockEnabled(); | 43 return input_controller_->IsCapsLockEnabled(); |
43 } | 44 } |
44 | 45 |
45 void ImeKeyboardOzone::ReapplyCurrentModifierLockStatus() { | 46 void ImeKeyboardOzone::ReapplyCurrentModifierLockStatus() { |
46 } | 47 } |
47 | 48 |
(...skipping 18 matching lines...) Expand all Loading... | |
66 } | 67 } |
67 | 68 |
68 // static | 69 // static |
69 ImeKeyboard* ImeKeyboard::Create() { | 70 ImeKeyboard* ImeKeyboard::Create() { |
70 return new ImeKeyboardOzone( | 71 return new ImeKeyboardOzone( |
71 ui::OzonePlatform::GetInstance()->GetInputController()); | 72 ui::OzonePlatform::GetInstance()->GetInputController()); |
72 } | 73 } |
73 | 74 |
74 } // namespace input_method | 75 } // namespace input_method |
75 } // namespace chromeos | 76 } // namespace chromeos |
OLD | NEW |