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

Unified Diff: ash/system/drive/tray_drive.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/drive/drive_observer.h ('k') | ash/system/drive/tray_drive.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/drive/tray_drive.h
diff --git a/ash/system/drive/tray_drive.h b/ash/system/drive/tray_drive.h
new file mode 100644
index 0000000000000000000000000000000000000000..10ceb0b75d44fd149fda631058f205cbb74ae5a1
--- /dev/null
+++ b/ash/system/drive/tray_drive.h
@@ -0,0 +1,62 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_SYSTEM_DRIVE_TRAY_DRIVE_H_
+#define ASH_SYSTEM_DRIVE_TRAY_DRIVE_H_
+#pragma once
+
+#include "ash/system/drive/drive_observer.h"
+#include "ash/system/tray/tray_image_item.h"
+#include "base/memory/scoped_ptr.h"
+
+
+namespace views {
+class Label;
+}
+
+namespace ash {
+
+namespace internal {
+
+namespace tray {
+class DriveTrayView;
+class DriveDefaultView;
+class DriveDetailedView;
+}
+
+class TrayDrive : public TrayImageItem,
+ public DriveObserver {
+ public:
+ TrayDrive();
+ virtual ~TrayDrive();
+
+ private:
+ // Overridden from TrayImageItem.
+ virtual bool GetInitialVisibility() OVERRIDE;
+
+ // Overridden from SystemTrayItem.
+ virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
+ virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
+ virtual void DestroyDefaultView() OVERRIDE;
+ virtual void DestroyDetailedView() OVERRIDE;
+ virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) OVERRIDE;
+
+ // Overridden from DriveObserver.
+ virtual void OnDriveRefresh(const DriveOperationStatusList& list) OVERRIDE;
+
+ // Delayed re-check of the status after encounter operation depleted list.
+ void OnStatusCheck();
+
+ void UpdateTrayIcon(bool show);
+
+ tray::DriveDefaultView* default_;
+ tray::DriveDetailedView* detailed_;
+
+ DISALLOW_COPY_AND_ASSIGN(TrayDrive);
+};
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_SYSTEM_DRIVE_TRAY_DRIVE_H_
« no previous file with comments | « ash/system/drive/drive_observer.h ('k') | ash/system/drive/tray_drive.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698