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

Side by Side Diff: ash/system/tray/system_tray_delegate.h

Issue 10008043: Allow non-radio button properties in uber tray. Simplified chinese will use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 30 matching lines...) Expand all
41 bool connected; 41 bool connected;
42 }; 42 };
43 43
44 typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList; 44 typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList;
45 45
46 struct ASH_EXPORT IMEPropertyInfo { 46 struct ASH_EXPORT IMEPropertyInfo {
47 IMEPropertyInfo(); 47 IMEPropertyInfo();
48 ~IMEPropertyInfo(); 48 ~IMEPropertyInfo();
49 49
50 bool selected; 50 bool selected;
51 bool is_selection;
51 std::string key; 52 std::string key;
52 string16 name; 53 string16 name;
53 }; 54 };
54 55
55 typedef std::vector<IMEPropertyInfo> IMEPropertyInfoList; 56 typedef std::vector<IMEPropertyInfo> IMEPropertyInfoList;
56 57
57 struct ASH_EXPORT IMEInfo { 58 struct ASH_EXPORT IMEInfo {
58 IMEInfo(); 59 IMEInfo();
59 ~IMEInfo(); 60 ~IMEInfo();
60 61
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 151
151 // Returns a list of availble IMEs. 152 // Returns a list of availble IMEs.
152 virtual void GetAvailableIMEList(IMEInfoList* list) = 0; 153 virtual void GetAvailableIMEList(IMEInfoList* list) = 0;
153 154
154 // Returns a list of properties for the currently selected IME. 155 // Returns a list of properties for the currently selected IME.
155 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) = 0; 156 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) = 0;
156 157
157 // Switches to the selected input method. 158 // Switches to the selected input method.
158 virtual void SwitchIME(const std::string& ime_id) = 0; 159 virtual void SwitchIME(const std::string& ime_id) = 0;
159 160
160 // Activates an IME property. 161 // Activates an IME property. Specify true to |is_selection| if it's a
161 virtual void ActivateIMEProperty(const std::string& key) = 0; 162 // selection item.
163 virtual void ActivateIMEProperty(
164 const std::string& key, bool is_selection) = 0;
162 165
163 // Returns information about the most relevant network. Relevance is 166 // Returns information about the most relevant network. Relevance is
164 // determined by the implementor (e.g. a connecting network may be more 167 // determined by the implementor (e.g. a connecting network may be more
165 // relevant over a connected network etc.) 168 // relevant over a connected network etc.)
166 virtual void GetMostRelevantNetworkIcon(NetworkIconInfo* info, 169 virtual void GetMostRelevantNetworkIcon(NetworkIconInfo* info,
167 bool large) = 0; 170 bool large) = 0;
168 171
169 // Returns information about the available networks. 172 // Returns information about the available networks.
170 virtual void GetAvailableNetworks(std::vector<NetworkIconInfo>* list) = 0; 173 virtual void GetAvailableNetworks(std::vector<NetworkIconInfo>* list) = 0;
171 174
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // Opens the top up url. 234 // Opens the top up url.
232 virtual void ShowCellularTopupURL(const std::string& topup_url) = 0; 235 virtual void ShowCellularTopupURL(const std::string& topup_url) = 0;
233 236
234 // Shows UI for changing proxy settings. 237 // Shows UI for changing proxy settings.
235 virtual void ChangeProxySettings() = 0; 238 virtual void ChangeProxySettings() = 0;
236 }; 239 };
237 240
238 } // namespace ash 241 } // namespace ash
239 242
240 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 243 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | chrome/browser/chromeos/system/ash_system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698