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

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

Issue 10214013: Created uber tray UI for monitoring ongoing WebDrive sync operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "ash/ash_export.h" 12 #include "ash/ash_export.h"
13 #include "ash/system/user/login_status.h" 13 #include "ash/system/user/login_status.h"
14 #include "ash/system/power/power_supply_status.h" 14 #include "ash/system/power/power_supply_status.h"
15 #include "base/file_path.h"
15 #include "base/i18n/time_formatting.h" 16 #include "base/i18n/time_formatting.h"
16 #include "base/string16.h" 17 #include "base/string16.h"
17 #include "third_party/skia/include/core/SkBitmap.h" 18 #include "third_party/skia/include/core/SkBitmap.h"
18 19
19 class SkBitmap; 20 class SkBitmap;
20 21
21 namespace ash { 22 namespace ash {
22 23
23 struct ASH_EXPORT NetworkIconInfo { 24 struct ASH_EXPORT NetworkIconInfo {
24 NetworkIconInfo(); 25 NetworkIconInfo();
(...skipping 11 matching lines...) Expand all
36 BluetoothDeviceInfo(); 37 BluetoothDeviceInfo();
37 ~BluetoothDeviceInfo(); 38 ~BluetoothDeviceInfo();
38 39
39 std::string address; 40 std::string address;
40 string16 display_name; 41 string16 display_name;
41 bool connected; 42 bool connected;
42 }; 43 };
43 44
44 typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList; 45 typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList;
45 46
47 // Structure that packs progress information of each operation.
48 struct ASH_EXPORT DriveOperationStatus {
49 enum OperationType {
50 OPERATION_UPLOAD,
51 OPERATION_DOWNLOAD,
52 OPERATION_OTHER,
53 };
54
55 enum OperationState {
56 OPERATION_NOT_STARTED,
57 OPERATION_STARTED,
58 OPERATION_IN_PROGRESS,
59 OPERATION_COMPLETED,
60 OPERATION_FAILED,
61 OPERATION_SUSPENDED,
62 };
63
64 DriveOperationStatus();
65 ~DriveOperationStatus();
66
67 // File path.
68 FilePath file_path;
69 // Current operation completion progress [0.0 - 1.0].
70 double progress;
71 OperationType type;
72 OperationState state;
73 };
74
75 typedef std::vector<DriveOperationStatus> DriveOperationStatusList;
76
77
46 struct ASH_EXPORT IMEPropertyInfo { 78 struct ASH_EXPORT IMEPropertyInfo {
47 IMEPropertyInfo(); 79 IMEPropertyInfo();
48 ~IMEPropertyInfo(); 80 ~IMEPropertyInfo();
49 81
50 bool selected; 82 bool selected;
51 std::string key; 83 std::string key;
52 string16 name; 84 string16 name;
53 }; 85 };
54 86
55 typedef std::vector<IMEPropertyInfo> IMEPropertyInfoList; 87 typedef std::vector<IMEPropertyInfo> IMEPropertyInfoList;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 131
100 // Shows the settings related to date, timezone etc. 132 // Shows the settings related to date, timezone etc.
101 virtual void ShowDateSettings() = 0; 133 virtual void ShowDateSettings() = 0;
102 134
103 // Shows the settings related to network. 135 // Shows the settings related to network.
104 virtual void ShowNetworkSettings() = 0; 136 virtual void ShowNetworkSettings() = 0;
105 137
106 // Shows the settings related to bluetooth. 138 // Shows the settings related to bluetooth.
107 virtual void ShowBluetoothSettings() = 0; 139 virtual void ShowBluetoothSettings() = 0;
108 140
141 // Shows settings related to Google Drive.
142 virtual void ShowDriveSettings() = 0;
143
109 // Shows settings related to input methods. 144 // Shows settings related to input methods.
110 virtual void ShowIMESettings() = 0; 145 virtual void ShowIMESettings() = 0;
111 146
112 // Shows help. 147 // Shows help.
113 virtual void ShowHelp() = 0; 148 virtual void ShowHelp() = 0;
114 149
115 // Is the system audio muted? 150 // Is the system audio muted?
116 virtual bool IsAudioMuted() const = 0; 151 virtual bool IsAudioMuted() const = 0;
117 152
118 // Mutes/Unmutes the audio system. 153 // Mutes/Unmutes the audio system.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 194
160 // Returns a list of properties for the currently selected IME. 195 // Returns a list of properties for the currently selected IME.
161 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) = 0; 196 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list) = 0;
162 197
163 // Switches to the selected input method. 198 // Switches to the selected input method.
164 virtual void SwitchIME(const std::string& ime_id) = 0; 199 virtual void SwitchIME(const std::string& ime_id) = 0;
165 200
166 // Activates an IME property. 201 // Activates an IME property.
167 virtual void ActivateIMEProperty(const std::string& key) = 0; 202 virtual void ActivateIMEProperty(const std::string& key) = 0;
168 203
204 // Cancels ongoing drive operation.
205 virtual void CancelDriveOperation(const FilePath& file_path) = 0;
206
207 // Returns information about the ongoing drive operations.
208 virtual void GetDriveOperationStatusList(
209 DriveOperationStatusList* list) = 0;
210
169 // Returns information about the most relevant network. Relevance is 211 // Returns information about the most relevant network. Relevance is
170 // determined by the implementor (e.g. a connecting network may be more 212 // determined by the implementor (e.g. a connecting network may be more
171 // relevant over a connected network etc.) 213 // relevant over a connected network etc.)
172 virtual void GetMostRelevantNetworkIcon(NetworkIconInfo* info, 214 virtual void GetMostRelevantNetworkIcon(NetworkIconInfo* info,
173 bool large) = 0; 215 bool large) = 0;
174 216
175 // Returns information about the available networks. 217 // Returns information about the available networks.
176 virtual void GetAvailableNetworks(std::vector<NetworkIconInfo>* list) = 0; 218 virtual void GetAvailableNetworks(std::vector<NetworkIconInfo>* list) = 0;
177 219
178 // Connects to the network specified by the unique id. 220 // Connects to the network specified by the unique id.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // Opens the cellular network specific URL. 281 // Opens the cellular network specific URL.
240 virtual void ShowCellularURL(const std::string& url) = 0; 282 virtual void ShowCellularURL(const std::string& url) = 0;
241 283
242 // Shows UI for changing proxy settings. 284 // Shows UI for changing proxy settings.
243 virtual void ChangeProxySettings() = 0; 285 virtual void ChangeProxySettings() = 0;
244 }; 286 };
245 287
246 } // namespace ash 288 } // namespace ash
247 289
248 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 290 #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