| 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_DATE_TRAY_DATE_H_ | 5 #ifndef ASH_SYSTEM_DATE_TRAY_DATE_H_ |
| 6 #define ASH_SYSTEM_DATE_TRAY_DATE_H_ | 6 #define ASH_SYSTEM_DATE_TRAY_DATE_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/system/date/clock_observer.h" | 9 #include "ash/system/date/clock_observer.h" |
| 10 #include "ash/system/tray/system_tray_item.h" | 10 #include "ash/system/tray/system_tray_item.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 virtual void DestroyTrayView() OVERRIDE; | 48 virtual void DestroyTrayView() OVERRIDE; |
| 49 virtual void DestroyDefaultView() OVERRIDE; | 49 virtual void DestroyDefaultView() OVERRIDE; |
| 50 virtual void DestroyDetailedView() OVERRIDE; | 50 virtual void DestroyDetailedView() OVERRIDE; |
| 51 virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) OVERRIDE; | 51 virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) OVERRIDE; |
| 52 virtual void UpdateAfterShelfAlignmentChange( | 52 virtual void UpdateAfterShelfAlignmentChange( |
| 53 ShelfAlignment alignment) OVERRIDE; | 53 ShelfAlignment alignment) OVERRIDE; |
| 54 | 54 |
| 55 // Overridden from ClockObserver. | 55 // Overridden from ClockObserver. |
| 56 virtual void OnDateFormatChanged() OVERRIDE; | 56 virtual void OnDateFormatChanged() OVERRIDE; |
| 57 virtual void OnSystemClockTimeUpdated() OVERRIDE; | 57 virtual void OnSystemClockTimeUpdated() OVERRIDE; |
| 58 virtual void OnSystemClockCanSetTimeChanged(bool can_set_time) OVERRIDE; |
| 58 virtual void Refresh() OVERRIDE; | 59 virtual void Refresh() OVERRIDE; |
| 59 | 60 |
| 60 void SetupLabelForTimeTray(views::Label* label); | 61 void SetupLabelForTimeTray(views::Label* label); |
| 61 | 62 |
| 62 tray::TimeView* time_tray_; | 63 tray::TimeView* time_tray_; |
| 63 DateDefaultView* default_view_; | 64 DateDefaultView* default_view_; |
| 65 user::LoginStatus login_status_; |
| 64 | 66 |
| 65 #if defined(OS_CHROMEOS) | 67 #if defined(OS_CHROMEOS) |
| 66 scoped_ptr<SystemClockObserver> system_clock_observer_; | 68 scoped_ptr<SystemClockObserver> system_clock_observer_; |
| 67 #endif | 69 #endif |
| 68 | 70 |
| 69 DISALLOW_COPY_AND_ASSIGN(TrayDate); | 71 DISALLOW_COPY_AND_ASSIGN(TrayDate); |
| 70 }; | 72 }; |
| 71 | 73 |
| 72 } // namespace ash | 74 } // namespace ash |
| 73 | 75 |
| 74 #endif // ASH_SYSTEM_DATE_TRAY_DATE_H_ | 76 #endif // ASH_SYSTEM_DATE_TRAY_DATE_H_ |
| OLD | NEW |