| OLD | NEW |
| 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_DRIVE_TRAY_DRIVE_H_ | 5 #ifndef ASH_SYSTEM_DRIVE_TRAY_DRIVE_H_ |
| 6 #define ASH_SYSTEM_DRIVE_TRAY_DRIVE_H_ | 6 #define ASH_SYSTEM_DRIVE_TRAY_DRIVE_H_ |
| 7 | 7 |
| 8 #include "ash/system/drive/drive_observer.h" | 8 #include "ash/system/drive/drive_observer.h" |
| 9 #include "ash/system/tray/tray_image_item.h" | 9 #include "ash/system/tray/tray_image_item.h" |
| 10 | 10 |
| 11 namespace views { | 11 namespace views { |
| 12 class Label; | 12 class Label; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace ash { | 15 namespace ash { |
| 16 | |
| 17 namespace internal { | 16 namespace internal { |
| 18 | 17 |
| 19 namespace tray { | 18 namespace tray { |
| 20 class DriveTrayView; | 19 class DriveTrayView; |
| 21 class DriveDefaultView; | 20 class DriveDefaultView; |
| 22 class DriveDetailedView; | 21 class DriveDetailedView; |
| 23 } | 22 } |
| 24 | 23 |
| 25 class TrayDrive : public TrayImageItem, | 24 class TrayDrive : public TrayImageItem, |
| 26 public DriveObserver { | 25 public DriveObserver { |
| 27 public: | 26 public: |
| 28 TrayDrive(); | 27 explicit TrayDrive(SystemTray* system_tray); |
| 29 virtual ~TrayDrive(); | 28 virtual ~TrayDrive(); |
| 30 | 29 |
| 31 private: | 30 private: |
| 32 // Overridden from TrayImageItem. | 31 // Overridden from TrayImageItem. |
| 33 virtual bool GetInitialVisibility() OVERRIDE; | 32 virtual bool GetInitialVisibility() OVERRIDE; |
| 34 | 33 |
| 35 // Overridden from SystemTrayItem. | 34 // Overridden from SystemTrayItem. |
| 36 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; | 35 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; |
| 37 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE; | 36 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE; |
| 38 virtual void DestroyDefaultView() OVERRIDE; | 37 virtual void DestroyDefaultView() OVERRIDE; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 50 tray::DriveDefaultView* default_; | 49 tray::DriveDefaultView* default_; |
| 51 tray::DriveDetailedView* detailed_; | 50 tray::DriveDetailedView* detailed_; |
| 52 | 51 |
| 53 DISALLOW_COPY_AND_ASSIGN(TrayDrive); | 52 DISALLOW_COPY_AND_ASSIGN(TrayDrive); |
| 54 }; | 53 }; |
| 55 | 54 |
| 56 } // namespace internal | 55 } // namespace internal |
| 57 } // namespace ash | 56 } // namespace ash |
| 58 | 57 |
| 59 #endif // ASH_SYSTEM_DRIVE_TRAY_DRIVE_H_ | 58 #endif // ASH_SYSTEM_DRIVE_TRAY_DRIVE_H_ |
| OLD | NEW |