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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d75bea88c4dceb89e09ff272406be39144bd0501..ee23fdda52b08cc3c84ad67b7a31fd4c7366fe5c 100644
--- a/ash/system/tray/system_tray_delegate.h
+++ b/ash/system/tray/system_tray_delegate.h
@@ -12,6 +12,7 @@
#include "ash/ash_export.h"
#include "ash/system/user/login_status.h"
#include "ash/system/power/power_supply_status.h"
+#include "base/file_path.h"
#include "base/i18n/time_formatting.h"
#include "base/string16.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -43,6 +44,37 @@ struct ASH_EXPORT BluetoothDeviceInfo {
typedef std::vector<BluetoothDeviceInfo> BluetoothDeviceList;
+// Structure that packs progress information of each operation.
+struct ASH_EXPORT DriveOperationStatus {
+ enum OperationType {
+ OPERATION_UPLOAD,
+ OPERATION_DOWNLOAD,
+ OPERATION_OTHER,
+ };
+
+ enum OperationState {
+ OPERATION_NOT_STARTED,
+ OPERATION_STARTED,
+ OPERATION_IN_PROGRESS,
+ OPERATION_COMPLETED,
+ OPERATION_FAILED,
+ OPERATION_SUSPENDED,
+ };
+
+ DriveOperationStatus();
+ ~DriveOperationStatus();
+
+ // File path.
+ FilePath file_path;
+ // Current operation completion progress [0.0 - 1.0].
+ double progress;
+ OperationType type;
+ OperationState state;
+};
+
+typedef std::vector<DriveOperationStatus> DriveOperationStatusList;
+
+
struct ASH_EXPORT IMEPropertyInfo {
IMEPropertyInfo();
~IMEPropertyInfo();
@@ -106,6 +138,9 @@ class SystemTrayDelegate {
// Shows the settings related to bluetooth.
virtual void ShowBluetoothSettings() = 0;
+ // Shows settings related to Google Drive.
+ virtual void ShowDriveSettings() = 0;
+
// Shows settings related to input methods.
virtual void ShowIMESettings() = 0;
@@ -166,6 +201,13 @@ class SystemTrayDelegate {
// Activates an IME property.
virtual void ActivateIMEProperty(const std::string& key) = 0;
+ // Cancels ongoing drive operation.
+ virtual void CancelDriveOperation(const FilePath& file_path) = 0;
+
+ // Returns information about the ongoing drive operations.
+ virtual void GetDriveOperationStatusList(
+ DriveOperationStatusList* list) = 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.)
« 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