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

Side by Side Diff: chrome/browser/chromeos/input_method/mock_input_method_manager.cc

Issue 133273032: Guest Mode: input method should default to the underlying latin keyboard layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-upload missing CL. Created 6 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/input_method/mock_input_method_manager.h" 5 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h"
6 6
7 namespace chromeos { 7 namespace chromeos {
8 namespace input_method { 8 namespace input_method {
9 9
10 MockInputMethodManager::MockInputMethodManager() 10 MockInputMethodManager::MockInputMethodManager()
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const std::vector<std::string>& 54 const std::vector<std::string>&
55 MockInputMethodManager::GetActiveInputMethodIds() const { 55 MockInputMethodManager::GetActiveInputMethodIds() const {
56 return active_input_method_ids_; 56 return active_input_method_ids_;
57 } 57 }
58 58
59 size_t MockInputMethodManager::GetNumActiveInputMethods() const { 59 size_t MockInputMethodManager::GetNumActiveInputMethods() const {
60 return 1; 60 return 1;
61 } 61 }
62 62
63 void MockInputMethodManager::EnableLayouts(const std::string& language_code, 63 void MockInputMethodManager::EnableLayouts(const std::string& language_code,
64 const std::string& initial_layout) { 64 const std::string& initial_layout,
65 const bool login_layouts_only) {
65 } 66 }
66 67
67 bool MockInputMethodManager::EnableInputMethods( 68 bool MockInputMethodManager::EnableInputMethods(
68 const std::vector<std::string>& new_active_input_method_ids) { 69 const std::vector<std::string>& new_active_input_method_ids) {
69 return true; 70 return true;
70 } 71 }
71 72
72 bool MockInputMethodManager::EnableInputMethod( 73 bool MockInputMethodManager::EnableInputMethod(
73 const std::string& new_active_input_method_id) { 74 const std::string& new_active_input_method_id) {
74 return true; 75 return true;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 const std::string& value) { 161 const std::string& value) {
161 delegate_.set_hardware_keyboard_layout(value); 162 delegate_.set_hardware_keyboard_layout(value);
162 } 163 }
163 164
164 bool MockInputMethodManager::IsLoginKeyboard( 165 bool MockInputMethodManager::IsLoginKeyboard(
165 const std::string& layout) const { 166 const std::string& layout) const {
166 return true; 167 return true;
167 } 168 }
168 } // namespace input_method 169 } // namespace input_method
169 } // namespace chromeos 170 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698