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

Side by Side 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, 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/drive/drive_observer.h ('k') | ash/system/drive/tray_drive.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_SYSTEM_DRIVE_TRAY_DRIVE_H_
6 #define ASH_SYSTEM_DRIVE_TRAY_DRIVE_H_
7 #pragma once
8
9 #include "ash/system/drive/drive_observer.h"
10 #include "ash/system/tray/tray_image_item.h"
11 #include "base/memory/scoped_ptr.h"
12
13
14 namespace views {
15 class Label;
16 }
17
18 namespace ash {
19
20 namespace internal {
21
22 namespace tray {
23 class DriveTrayView;
24 class DriveDefaultView;
25 class DriveDetailedView;
26 }
27
28 class TrayDrive : public TrayImageItem,
29 public DriveObserver {
30 public:
31 TrayDrive();
32 virtual ~TrayDrive();
33
34 private:
35 // Overridden from TrayImageItem.
36 virtual bool GetInitialVisibility() OVERRIDE;
37
38 // Overridden from SystemTrayItem.
39 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
40 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
41 virtual void DestroyDefaultView() OVERRIDE;
42 virtual void DestroyDetailedView() OVERRIDE;
43 virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) OVERRIDE;
44
45 // Overridden from DriveObserver.
46 virtual void OnDriveRefresh(const DriveOperationStatusList& list) OVERRIDE;
47
48 // Delayed re-check of the status after encounter operation depleted list.
49 void OnStatusCheck();
50
51 void UpdateTrayIcon(bool show);
52
53 tray::DriveDefaultView* default_;
54 tray::DriveDetailedView* detailed_;
55
56 DISALLOW_COPY_AND_ASSIGN(TrayDrive);
57 };
58
59 } // namespace internal
60 } // namespace ash
61
62 #endif // ASH_SYSTEM_DRIVE_TRAY_DRIVE_H_
OLDNEW
« 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