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

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

Issue 2652793003: Add login screen locale and input method device policies (Closed)
Patch Set: Rebase. Created 3 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
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 "ui/base/ime/chromeos/mock_input_method_manager.h" 5 #include "ui/base/ime/chromeos/mock_input_method_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 namespace chromeos { 9 namespace chromeos {
10 namespace input_method { 10 namespace input_method {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const { 85 const {
86 InputMethodDescriptor descriptor; 86 InputMethodDescriptor descriptor;
87 return descriptor; 87 return descriptor;
88 } 88 }
89 89
90 bool MockInputMethodManager::State::ReplaceEnabledInputMethods( 90 bool MockInputMethodManager::State::ReplaceEnabledInputMethods(
91 const std::vector<std::string>& new_active_input_method_ids) { 91 const std::vector<std::string>& new_active_input_method_ids) {
92 return true; 92 return true;
93 } 93 }
94 94
95 bool MockInputMethodManager::State::SetAllowedInputMethods(
96 const std::vector<std::string>& new_allowed_input_method_ids) {
97 allowed_input_method_ids_ = new_allowed_input_method_ids;
98 return true;
99 }
100
101 const std::vector<std::string>&
102 MockInputMethodManager::State::GetAllowedInputMethods() {
103 return allowed_input_method_ids_;
104 }
105
95 MockInputMethodManager::State::~State() {} 106 MockInputMethodManager::State::~State() {}
96 107
97 MockInputMethodManager::MockInputMethodManager() {} 108 MockInputMethodManager::MockInputMethodManager() {}
98 109
99 MockInputMethodManager::~MockInputMethodManager() {} 110 MockInputMethodManager::~MockInputMethodManager() {}
100 111
101 InputMethodManager::UISessionState MockInputMethodManager::GetUISessionState() { 112 InputMethodManager::UISessionState MockInputMethodManager::GetUISessionState() {
102 return InputMethodManager::STATE_BROWSER_SCREEN; 113 return InputMethodManager::STATE_BROWSER_SCREEN;
103 } 114 }
104 115
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 191
181 void MockInputMethodManager::OverrideKeyboardUrlRef(const std::string& keyset) { 192 void MockInputMethodManager::OverrideKeyboardUrlRef(const std::string& keyset) {
182 } 193 }
183 194
184 bool MockInputMethodManager::IsEmojiHandwritingVoiceOnImeMenuEnabled() { 195 bool MockInputMethodManager::IsEmojiHandwritingVoiceOnImeMenuEnabled() {
185 return true; 196 return true;
186 } 197 }
187 198
188 } // namespace input_method 199 } // namespace input_method
189 } // namespace chromeos 200 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698