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

Side by Side Diff: chromeos/ime/fake_input_method_delegate.cc

Issue 139803010: Support comma separated hardware keyboard layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing comments Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chromeos/ime/fake_input_method_delegate.h" 5 #include "chromeos/ime/fake_input_method_delegate.h"
6 6
7 namespace chromeos { 7 namespace chromeos {
8 namespace input_method { 8 namespace input_method {
9 9
10 FakeInputMethodDelegate::FakeInputMethodDelegate() 10 FakeInputMethodDelegate::FakeInputMethodDelegate()
11 : active_locale_("en") { 11 : active_locale_("en") {
12 } 12 }
13 13
14 FakeInputMethodDelegate::~FakeInputMethodDelegate() { 14 FakeInputMethodDelegate::~FakeInputMethodDelegate() {
15 } 15 }
16 16
17 std::string FakeInputMethodDelegate::GetHardwareKeyboardLayout() const { 17 void FakeInputMethodDelegate::GetHardwareKeyboardLayouts(
18 return hardware_keyboard_layout_; 18 std::vector<std::string>* out) const {
19 *out = hardware_keyboard_layout_;
19 } 20 }
20 21
21 base::string16 FakeInputMethodDelegate::GetLocalizedString( 22 base::string16 FakeInputMethodDelegate::GetLocalizedString(
22 int resource_id) const { 23 int resource_id) const {
23 if (!get_localized_string_callback_.is_null()) 24 if (!get_localized_string_callback_.is_null())
24 return get_localized_string_callback_.Run(resource_id); 25 return get_localized_string_callback_.Run(resource_id);
25 return base::string16(); 26 return base::string16();
26 } 27 }
27 28
28 base::string16 FakeInputMethodDelegate::GetDisplayLanguageName( 29 base::string16 FakeInputMethodDelegate::GetDisplayLanguageName(
29 const std::string& language_code) const { 30 const std::string& language_code) const {
30 if (!get_display_language_name_callback_.is_null()) 31 if (!get_display_language_name_callback_.is_null())
31 return get_display_language_name_callback_.Run(language_code); 32 return get_display_language_name_callback_.Run(language_code);
32 return base::string16(); 33 return base::string16();
33 } 34 }
34 35
35 } // namespace input_method 36 } // namespace input_method
36 } // namespace chromeos 37 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698