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

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

Issue 410333005: Remove the drive status from the ash try. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows build. Created 6 years, 5 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
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 std::string address; 47 std::string address;
48 base::string16 display_name; 48 base::string16 display_name;
49 bool connected; 49 bool connected;
50 bool connecting; 50 bool connecting;
51 bool paired; 51 bool paired;
52 }; 52 };
53 53
54 typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList; 54 typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList;
55 55
56 // Structure that packs progress information of each operation.
57 struct ASH_EXPORT DriveOperationStatus {
58 enum OperationType {
59 OPERATION_UPLOAD,
60 OPERATION_DOWNLOAD
61 };
62
63 enum OperationState {
64 OPERATION_NOT_STARTED,
65 OPERATION_IN_PROGRESS,
66 OPERATION_COMPLETED,
67 OPERATION_FAILED,
68 };
69
70 DriveOperationStatus();
71 ~DriveOperationStatus();
72
73 // Unique ID for the operation.
74 int32 id;
75
76 // File path.
77 base::FilePath file_path;
78 // Current operation completion progress [0.0 - 1.0].
79 double progress;
80 OperationType type;
81 OperationState state;
82 };
83
84 typedef std::vector<DriveOperationStatus> DriveOperationStatusList;
85
86
87 struct ASH_EXPORT IMEPropertyInfo { 56 struct ASH_EXPORT IMEPropertyInfo {
88 IMEPropertyInfo(); 57 IMEPropertyInfo();
89 ~IMEPropertyInfo(); 58 ~IMEPropertyInfo();
90 59
91 bool selected; 60 bool selected;
92 std::string key; 61 std::string key;
93 base::string16 name; 62 base::string16 name;
94 }; 63 };
95 64
96 typedef std::vector<IMEPropertyInfo> IMEPropertyInfoList; 65 typedef std::vector<IMEPropertyInfo> IMEPropertyInfoList;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // Shows settings related to multiple displays. 147 // Shows settings related to multiple displays.
179 virtual void ShowDisplaySettings() = 0; 148 virtual void ShowDisplaySettings() = 0;
180 149
181 // Shows the page that lets you disable performance tracing. 150 // Shows the page that lets you disable performance tracing.
182 virtual void ShowChromeSlow() = 0; 151 virtual void ShowChromeSlow() = 0;
183 152
184 // Returns true if the notification for the display configuration change 153 // Returns true if the notification for the display configuration change
185 // should appear. 154 // should appear.
186 virtual bool ShouldShowDisplayNotification() = 0; 155 virtual bool ShouldShowDisplayNotification() = 0;
187 156
188 // Shows settings related to Google Drive.
189 virtual void ShowDriveSettings() = 0;
190
191 // Shows settings related to input methods. 157 // Shows settings related to input methods.
192 virtual void ShowIMESettings() = 0; 158 virtual void ShowIMESettings() = 0;
193 159
194 // Shows help. 160 // Shows help.
195 virtual void ShowHelp() = 0; 161 virtual void ShowHelp() = 0;
196 162
197 // Show accessilibity help. 163 // Show accessilibity help.
198 virtual void ShowAccessibilityHelp() = 0; 164 virtual void ShowAccessibilityHelp() = 0;
199 165
200 // Show the settings related to accessilibity. 166 // Show the settings related to accessilibity.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 223
258 // Returns a list of properties for the currently selected IME. 224 // Returns a list of properties for the currently selected IME.
259 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) = 0; 225 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) = 0;
260 226
261 // Switches to the selected input method. 227 // Switches to the selected input method.
262 virtual void SwitchIME(const std::string& ime_id) = 0; 228 virtual void SwitchIME(const std::string& ime_id) = 0;
263 229
264 // Activates an IME property. 230 // Activates an IME property.
265 virtual void ActivateIMEProperty(const std::string& key) = 0; 231 virtual void ActivateIMEProperty(const std::string& key) = 0;
266 232
267 // Cancels ongoing drive operation.
268 virtual void CancelDriveOperation(int32 operation_id) = 0;
269
270 // Returns information about the ongoing drive operations.
271 virtual void GetDriveOperationStatusList(
272 DriveOperationStatusList* list) = 0;
273
274 // Shows UI to configure or activate the network specified by |network_id|, 233 // Shows UI to configure or activate the network specified by |network_id|,
275 // which may include showing Payment or Portal UI when appropriate. 234 // which may include showing Payment or Portal UI when appropriate.
276 // |parent_window| is used to parent any configuration UI. If NULL a default 235 // |parent_window| is used to parent any configuration UI. If NULL a default
277 // window will be used. 236 // window will be used.
278 virtual void ShowNetworkConfigure(const std::string& network_id, 237 virtual void ShowNetworkConfigure(const std::string& network_id,
279 gfx::NativeWindow parent_window) = 0; 238 gfx::NativeWindow parent_window) = 0;
280 239
281 // Shows UI to enroll the network specified by |network_id| if appropriate 240 // Shows UI to enroll the network specified by |network_id| if appropriate
282 // and returns true, otherwise returns false. |parent_window| is used 241 // and returns true, otherwise returns false. |parent_window| is used
283 // to parent any configuration UI. If NULL a default window will be used. 242 // to parent any configuration UI. If NULL a default window will be used.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 virtual bool IsSearchKeyMappedToCapsLock() = 0; 296 virtual bool IsSearchKeyMappedToCapsLock() = 0;
338 297
339 // Returns accounts delegate for given user. 298 // Returns accounts delegate for given user.
340 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate( 299 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate(
341 const std::string& user_id) = 0; 300 const std::string& user_id) = 0;
342 }; 301 };
343 302
344 } // namespace ash 303 } // namespace ash
345 304
346 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 305 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698