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

Unified Diff: chrome/browser/chromeos/input_method/input_method_descriptor.h

Issue 10544070: Add decoration to the language button to indicate that a third party IME is in use (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit tests Created 8 years, 6 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
Index: chrome/browser/chromeos/input_method/input_method_descriptor.h
diff --git a/chrome/browser/chromeos/input_method/input_method_descriptor.h b/chrome/browser/chromeos/input_method/input_method_descriptor.h
index 231c1dbffbd48d3a3a3dddf34e044506d2be51c5..cf296dc8bb5684318668ceb50e24420780fab145 100644
--- a/chrome/browser/chromeos/input_method/input_method_descriptor.h
+++ b/chrome/browser/chromeos/input_method/input_method_descriptor.h
@@ -23,7 +23,8 @@ class InputMethodDescriptor {
InputMethodDescriptor(const std::string& id,
const std::string& name,
const std::string& keyboard_layout,
- const std::string& language_code);
+ const std::string& language_code,
+ bool third_party);
~InputMethodDescriptor();
bool operator==(const InputMethodDescriptor& other) const;
@@ -36,6 +37,7 @@ class InputMethodDescriptor {
const std::string& name() const { return name_; }
const std::string& keyboard_layout() const { return keyboard_layout_; }
const std::string& language_code() const { return language_code_; }
+ bool third_party() const { return third_party_; }
// Returns the fallback input method descriptor (the very basic US
// keyboard). This function is mostly used for testing, but may be used
@@ -54,6 +56,8 @@ class InputMethodDescriptor {
std::string keyboard_layout_;
// Language code like "ko", "ja", "en-US", and "zh-CN".
std::string language_code_;
+ // Indicates if this is a third party ime
+ bool third_party_;
};
typedef std::vector<InputMethodDescriptor> InputMethodDescriptors;

Powered by Google App Engine
This is Rietveld 408576698