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

Side by Side Diff: ui/base/ime/chromeos/fake_ime_keyboard.cc

Issue 2925353002: Implement sync of keyboard layout between Ozone and Wayland clients (Closed)
Patch Set: Rebase on master Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/base/ime/chromeos/ime_keyboard.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/base/ime/chromeos/ime_keyboard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698