| 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/fake_ime_keyboard.h" | 5 #include "ui/base/ime/chromeos/fake_ime_keyboard.h" |
| 6 | 6 |
| 7 namespace chromeos { | 7 namespace chromeos { |
| 8 namespace input_method { | 8 namespace input_method { |
| 9 | 9 |
| 10 FakeImeKeyboard::FakeImeKeyboard() | 10 FakeImeKeyboard::FakeImeKeyboard() |
| 11 : set_current_keyboard_layout_by_name_count_(0), | 11 : set_current_keyboard_layout_by_name_count_(0), |
| 12 auto_repeat_is_enabled_(false) { | 12 auto_repeat_is_enabled_(false) { |
| 13 } | 13 } |
| 14 | 14 |
| 15 FakeImeKeyboard::~FakeImeKeyboard() { | 15 FakeImeKeyboard::~FakeImeKeyboard() { |
| 16 } | 16 } |
| 17 | 17 |
| 18 bool FakeImeKeyboard::SetCurrentKeyboardLayoutByName( | 18 bool FakeImeKeyboard::SetCurrentKeyboardLayoutByName( |
| 19 const std::string& layout_name) { | 19 const std::string& layout_name) { |
| 20 ImeKeyboard::SetCurrentKeyboardLayoutByName(layout_name); |
| 20 ++set_current_keyboard_layout_by_name_count_; | 21 ++set_current_keyboard_layout_by_name_count_; |
| 21 last_layout_ = layout_name; | 22 last_layout_ = layout_name; |
| 22 return true; | 23 return true; |
| 23 } | 24 } |
| 24 | 25 |
| 25 bool FakeImeKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) { | 26 bool FakeImeKeyboard::SetAutoRepeatRate(const AutoRepeatRate& rate) { |
| 26 last_auto_repeat_rate_ = rate; | 27 last_auto_repeat_rate_ = rate; |
| 27 return true; | 28 return true; |
| 28 } | 29 } |
| 29 | 30 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 49 bool FakeImeKeyboard::IsISOLevel5ShiftAvailable() const { | 50 bool FakeImeKeyboard::IsISOLevel5ShiftAvailable() const { |
| 50 return false; | 51 return false; |
| 51 } | 52 } |
| 52 | 53 |
| 53 bool FakeImeKeyboard::IsAltGrAvailable() const { | 54 bool FakeImeKeyboard::IsAltGrAvailable() const { |
| 54 return false; | 55 return false; |
| 55 } | 56 } |
| 56 | 57 |
| 57 } // namespace input_method | 58 } // namespace input_method |
| 58 } // namespace chromeos | 59 } // namespace chromeos |
| OLD | NEW |