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

Unified Diff: chromeos/ime/input_method_descriptor.h

Issue 22980018: Disable non Latin keyboard layout on Lock screen and Sign-in screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test case. Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/ime/gen_input_methods.py ('k') | chromeos/ime/input_method_descriptor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/ime/input_method_descriptor.h
diff --git a/chromeos/ime/input_method_descriptor.h b/chromeos/ime/input_method_descriptor.h
index c410719c393407678aaf8dd2b8c6526309847802..32f3de9721e8013087c9ff2ad8ad56e35b306b91 100644
--- a/chromeos/ime/input_method_descriptor.h
+++ b/chromeos/ime/input_method_descriptor.h
@@ -23,6 +23,7 @@ class CHROMEOS_EXPORT InputMethodDescriptor {
const std::string& name,
const std::vector<std::string>& keyboard_layouts,
const std::vector<std::string>& language_codes,
+ bool is_login_keyboard,
const GURL& options_page_url);
~InputMethodDescriptor();
@@ -37,6 +38,8 @@ class CHROMEOS_EXPORT InputMethodDescriptor {
return keyboard_layouts_;
}
+ bool is_login_keyboard() const { return is_login_keyboard_; }
+
// Returns preferred keyboard layout.
std::string GetPreferredKeyboardLayout() const;
@@ -56,6 +59,9 @@ class CHROMEOS_EXPORT InputMethodDescriptor {
// Language code like "ko", "ja", "en-US", and "zh-CN".
std::vector<std::string> language_codes_;
+ // True if this input method can be used on login screen.
+ bool is_login_keyboard_;
+
// Options page URL e.g.
// "chrome-extension://ceaajjmckiakobniehbjpdcidfpohlin/options.html".
// We can't use GURL here due to dependency policy. This field is valid only
« no previous file with comments | « chromeos/ime/gen_input_methods.py ('k') | chromeos/ime/input_method_descriptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698