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

Unified Diff: ash/common/system/date/tray_system_info.h

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/system/date/tray_date.cc ('k') | ash/common/system/date/tray_system_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/date/tray_system_info.h
diff --git a/ash/common/system/date/tray_system_info.h b/ash/common/system/date/tray_system_info.h
deleted file mode 100644
index 7d5faa4278793493d7adb6dbc7839d1059ef5fc7..0000000000000000000000000000000000000000
--- a/ash/common/system/date/tray_system_info.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright 2016 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_SYSTEM_INFO_H_
-#define ASH_COMMON_SYSTEM_DATE_TRAY_SYSTEM_INFO_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 views {
-class Label;
-}
-
-namespace ash {
-class SystemClockObserver;
-class SystemInfoDefaultView;
-
-namespace tray {
-class TimeView;
-}
-
-// The bottom row of the system menu. The default view shows the current date
-// and power status. The tray view shows the current time.
-class ASH_EXPORT TraySystemInfo : public SystemTrayItem, public ClockObserver {
- public:
- explicit TraySystemInfo(SystemTray* system_tray);
- ~TraySystemInfo() override;
-
- const tray::TimeView* GetTimeTrayForTesting() const;
- const SystemInfoDefaultView* GetDefaultViewForTesting() const;
- views::View* CreateDefaultViewForTesting(LoginStatus status);
-
- private:
- // SystemTrayItem:
- views::View* CreateTrayView(LoginStatus status) override;
- views::View* CreateDefaultView(LoginStatus status) override;
- void DestroyTrayView() override;
- void DestroyDefaultView() override;
- void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override;
-
- // ClockObserver:
- void OnDateFormatChanged() override;
- void OnSystemClockTimeUpdated() override;
- void OnSystemClockCanSetTimeChanged(bool can_set_time) override;
- void Refresh() override;
-
- void SetupLabelForTimeTray(views::Label* label);
- void UpdateTimeFormat();
-
- tray::TimeView* tray_view_;
- SystemInfoDefaultView* default_view_;
- LoginStatus login_status_;
-
- std::unique_ptr<SystemClockObserver> system_clock_observer_;
-
- DISALLOW_COPY_AND_ASSIGN(TraySystemInfo);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_DATE_TRAY_SYSTEM_INFO_H_
« no previous file with comments | « ash/common/system/date/tray_date.cc ('k') | ash/common/system/date/tray_system_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698