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

Side by Side Diff: ash/system/drive/tray_drive.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/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
8 #include "ash/system/drive/drive_observer.h"
9 #include "ash/system/tray/tray_image_item.h"
10 #include "base/timer/timer.h"
11
12 namespace views {
13 class Label;
14 }
15
16 namespace ash {
17 namespace tray {
18 class DriveTrayView;
19 class DriveDefaultView;
20 class DriveDetailedView;
21 }
22
23 class TrayDrive : public TrayImageItem,
24 public DriveObserver {
25 public:
26 explicit TrayDrive(SystemTray* system_tray);
27 virtual ~TrayDrive();
28
29 private:
30 // Overridden from TrayImageItem.
31 virtual bool GetInitialVisibility() OVERRIDE;
32
33 // Overridden from SystemTrayItem.
34 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
35 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
36 virtual void DestroyDefaultView() OVERRIDE;
37 virtual void DestroyDetailedView() OVERRIDE;
38 virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) OVERRIDE;
39
40 // Overridden from DriveObserver.
41 virtual void OnDriveJobUpdated(const DriveOperationStatus& status) OVERRIDE;
42
43 // Delayed hiding of the tray item after encountering an empty operation list.
44 void HideIfNoOperations();
45
46 tray::DriveDefaultView* default_;
47 tray::DriveDetailedView* detailed_;
48 base::OneShotTimer<TrayDrive> hide_timer_;
49
50 DISALLOW_COPY_AND_ASSIGN(TrayDrive);
51 };
52
53 } // namespace ash
54
55 #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