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

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: 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..3f1f3f42222427839a038548f3ffad091b260513 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_; }
+ const bool third_party() const { return third_party_; }
Yusuke Sato 2012/06/08 08:26:02 nit: const bool -> bool
Zachary Kuznia 2012/06/11 06:28:21 Done.
// 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;
« no previous file with comments | « ash/system/tray/system_tray_delegate.cc ('k') | chrome/browser/chromeos/input_method/input_method_descriptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698