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

Unified Diff: ash/system/tray/system_tray_delegate.h

Issue 9835045: Support IME properties in uber tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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: ash/system/tray/system_tray_delegate.h
diff --git a/ash/system/tray/system_tray_delegate.h b/ash/system/tray/system_tray_delegate.h
index 01258cbcfa9fef2eef7f285651a31aa0efc85662..82fbf0022747b5d61d8f5b4d90569d77ada2ab65 100644
--- a/ash/system/tray/system_tray_delegate.h
+++ b/ash/system/tray/system_tray_delegate.h
@@ -41,6 +41,17 @@ struct ASH_EXPORT BluetoothDeviceInfo {
typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList;
+struct ASH_EXPORT IMEPropertyInfo {
+ IMEPropertyInfo();
+ ~IMEPropertyInfo();
+
+ bool selected;
+ std::string key;
+ string16 name;
+};
+
+typedef std::vector<IMEPropertyInfo> IMEPropertyInfoList;
+
struct ASH_EXPORT IMEInfo {
IMEInfo();
~IMEInfo();
@@ -137,9 +148,15 @@ class SystemTrayDelegate {
// Returns a list of availble IMEs.
virtual void GetAvailableIMEList(IMEInfoList* list) = 0;
+ // Returns a list of properties for the currently selected IME.
+ virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) = 0;
+
// Switches to the selected input method.
virtual void SwitchIME(const std::string& ime_id) = 0;
+ // Activates an IME property.
+ virtual void ActivateIMEProperty(const std::string& key) = 0;
+
// Returns information about the most relevant network. Relevance is
// determined by the implementor (e.g. a connecting network may be more
// relevant over a connected network etc.)

Powered by Google App Engine
This is Rietveld 408576698