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

Side by Side Diff: chromeos/ime/input_method_manager.h

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 #ifndef CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ 5 #ifndef CHROMEOS_IME_INPUT_METHOD_MANAGER_H_
6 #define CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ 6 #define CHROMEOS_IME_INPUT_METHOD_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // is not active, switch to the first one in the active input method list. 109 // is not active, switch to the first one in the active input method list.
110 virtual void ChangeInputMethod(const std::string& input_method_id) = 0; 110 virtual void ChangeInputMethod(const std::string& input_method_id) = 0;
111 111
112 // Enables keyboard layouts (e.g. US Qwerty, US Dvorak, French Azerty) that 112 // Enables keyboard layouts (e.g. US Qwerty, US Dvorak, French Azerty) that
113 // are necessary for the |language_code| and then switches to |initial_layout| 113 // are necessary for the |language_code| and then switches to |initial_layout|
114 // if the string is not empty. For example, if |language_code| is "en-US", US 114 // if the string is not empty. For example, if |language_code| is "en-US", US
115 // Qwerty, US International, US Extended, US Dvorak, and US Colemak layouts 115 // Qwerty, US International, US Extended, US Dvorak, and US Colemak layouts
116 // would be enabled. Likewise, for Germany locale, US Qwerty which corresponds 116 // would be enabled. Likewise, for Germany locale, US Qwerty which corresponds
117 // to the hardware keyboard layout and several keyboard layouts for Germany 117 // to the hardware keyboard layout and several keyboard layouts for Germany
118 // would be enabled. 118 // would be enabled.
119 // This method is for setting up i18n keyboard layouts for the login screen. 119 // For the login screen you need login_layouts_only=true to filter
120 // unsuitable keyboard layouts.
120 virtual void EnableLayouts(const std::string& language_code, 121 virtual void EnableLayouts(const std::string& language_code,
Hiro Komatsu 2014/01/21 05:46:01 To add keyboard layouts after login, please use En
Alexander Alekseev 2014/01/21 14:05:27 What do you mean? This method has always been used
Hiro Komatsu 2014/01/22 10:01:55 InputMethodUtil::GetInputMethodIdsFromLanguageCode
Alexander Alekseev 2014/01/22 11:35:05 Do you prefer to move EnableLayouts(const std::str
Hiro Komatsu 2014/01/24 08:24:44 No, what I meant were: 1. Please do not use Enabl
Alexander Alekseev 2014/01/24 13:29:45 Done.
121 const std::string& initial_layout) = 0; 122 const std::string& initial_layout,
123 const bool login_layouts_only) = 0;
122 124
123 // Activates the input method property specified by the |key|. 125 // Activates the input method property specified by the |key|.
124 virtual void ActivateInputMethodProperty(const std::string& key) = 0; 126 virtual void ActivateInputMethodProperty(const std::string& key) = 0;
125 127
126 // Updates the list of active input method IDs, and then starts or stops the 128 // Updates the list of active input method IDs, and then starts or stops the
127 // system input method framework as needed. 129 // system input method framework as needed.
128 virtual bool EnableInputMethods( 130 virtual bool EnableInputMethods(
129 const std::vector<std::string>& new_active_input_method_ids) = 0; 131 const std::vector<std::string>& new_active_input_method_ids) = 0;
130 132
131 // Adds one entry to the list of active input method IDs, and then starts or 133 // Adds one entry to the list of active input method IDs, and then starts or
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0; 185 virtual bool SwitchInputMethod(const ui::Accelerator& accelerator) = 0;
184 186
185 // If keyboard layout can be uset at login screen 187 // If keyboard layout can be uset at login screen
186 virtual bool IsLoginKeyboard(const std::string& layout) const = 0; 188 virtual bool IsLoginKeyboard(const std::string& layout) const = 0;
187 }; 189 };
188 190
189 } // namespace input_method 191 } // namespace input_method
190 } // namespace chromeos 192 } // namespace chromeos
191 193
192 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ 194 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698