Index: ash/common/system/date/tray_date.h |
diff --git a/ash/common/system/date/tray_date.h b/ash/common/system/date/tray_date.h |
deleted file mode 100644 |
index bf25e617d664215d13204e01b3d032189d827a3d..0000000000000000000000000000000000000000 |
--- a/ash/common/system/date/tray_date.h |
+++ /dev/null |
@@ -1,76 +0,0 @@ |
-// 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_COMMON_SYSTEM_DATE_TRAY_DATE_H_ |
-#define ASH_COMMON_SYSTEM_DATE_TRAY_DATE_H_ |
- |
-#include <memory> |
- |
-#include "ash/ash_export.h" |
-#include "ash/common/login_status.h" |
-#include "ash/common/system/date/clock_observer.h" |
-#include "ash/common/system/tray/system_tray_item.h" |
-#include "base/macros.h" |
- |
-namespace ash { |
-class DateDefaultView; |
-class SystemClockObserver; |
- |
-namespace tray { |
-class TimeView; |
-} |
- |
-// System tray item for the time and date. |
-class ASH_EXPORT TrayDate : public SystemTrayItem, public ClockObserver { |
- public: |
- enum ClockLayout { |
- HORIZONTAL_CLOCK, |
- VERTICAL_CLOCK, |
- }; |
- |
- enum DateAction { |
- NONE, |
- SET_SYSTEM_TIME, |
- SHOW_DATE_SETTINGS, |
- }; |
- |
- explicit TrayDate(SystemTray* system_tray); |
- ~TrayDate() override; |
- |
- // Returns view for help button if it is exists. Returns NULL otherwise. |
- views::View* GetHelpButtonView() const; |
- |
- const tray::TimeView* GetTimeTrayForTesting() const; |
- const DateDefaultView* GetDefaultViewForTesting() const; |
- views::View* CreateDefaultViewForTesting(LoginStatus status); |
- |
- private: |
- // Overridden from SystemTrayItem. |
- views::View* CreateTrayView(LoginStatus status) override; |
- views::View* CreateDefaultView(LoginStatus status) override; |
- views::View* CreateDetailedView(LoginStatus status) override; |
- void DestroyTrayView() override; |
- void DestroyDefaultView() override; |
- void DestroyDetailedView() override; |
- void UpdateAfterLoginStatusChange(LoginStatus status) override; |
- void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override; |
- |
- // Overridden from ClockObserver. |
- void OnDateFormatChanged() override; |
- void OnSystemClockTimeUpdated() override; |
- void OnSystemClockCanSetTimeChanged(bool can_set_time) override; |
- void Refresh() override; |
- |
- tray::TimeView* time_tray_; |
- DateDefaultView* default_view_; |
- LoginStatus login_status_; |
- |
- std::unique_ptr<SystemClockObserver> system_clock_observer_; |
- |
- DISALLOW_COPY_AND_ASSIGN(TrayDate); |
-}; |
- |
-} // namespace ash |
- |
-#endif // ASH_COMMON_SYSTEM_DATE_TRAY_DATE_H_ |