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

Unified Diff: chromeos/ime/input_method_descriptor.h

Issue 150723006: Make input_methods.txt to be able to specify indicator string. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more consistent 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 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 b63b54f6aa640611b823f598c5af43286de0f01e..ab7cfb4ffb9f372f4290dabab7e8aaa0723f1954 100644
--- a/chromeos/ime/input_method_descriptor.h
+++ b/chromeos/ime/input_method_descriptor.h
@@ -21,6 +21,7 @@ class CHROMEOS_EXPORT InputMethodDescriptor {
InputMethodDescriptor();
InputMethodDescriptor(const std::string& id,
const std::string& name,
+ const std::string& indicator,
const std::vector<std::string>& keyboard_layouts,
const std::vector<std::string>& language_codes,
bool is_login_keyboard,
@@ -31,6 +32,7 @@ class CHROMEOS_EXPORT InputMethodDescriptor {
// Accessors
const std::string& id() const { return id_; }
const std::string& name() const { return name_; }
+ const std::string& indicator() const { return indicator_; }
const std::vector<std::string>& language_codes() const {
return language_codes_;
}
@@ -61,6 +63,10 @@ class CHROMEOS_EXPORT InputMethodDescriptor {
// Language code like "ko", "ja", "en-US", and "zh-CN".
std::vector<std::string> language_codes_;
+ // A short indicator string that is displayed when the input method
+ // is selected, like "US".
+ std::string indicator_;
+
// True if this input method can be used on login screen.
bool is_login_keyboard_;
« 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