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

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

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 10 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/date_view_unittest.cc ('k') | ash/common/system/date/system_info_default_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/date/system_info_default_view.h
diff --git a/ash/common/system/date/system_info_default_view.h b/ash/common/system/date/system_info_default_view.h
deleted file mode 100644
index 95fcb010f22370cee5c96b0b6e457722e633302c..0000000000000000000000000000000000000000
--- a/ash/common/system/date/system_info_default_view.h
+++ /dev/null
@@ -1,58 +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_SYSTEM_INFO_DEFAULT_VIEW_H_
-#define ASH_COMMON_SYSTEM_DATE_SYSTEM_INFO_DEFAULT_VIEW_H_
-
-#include "ash/ash_export.h"
-#include "ash/common/login_status.h"
-#include "base/macros.h"
-#include "ui/views/view.h"
-
-namespace ash {
-class PowerStatusView;
-class SystemTrayItem;
-class TriView;
-
-namespace tray {
-class DateView;
-} // namespace tray
-
-// The default view for the system info row in the system menu. Contains the
-// current date and, if a battery is present, a string showing the current
-// power status.
-class ASH_EXPORT SystemInfoDefaultView : public views::View {
- public:
- SystemInfoDefaultView(SystemTrayItem* owner, LoginStatus login);
-
- ~SystemInfoDefaultView() override;
-
- tray::DateView* GetDateView();
- const tray::DateView* GetDateView() const;
-
- // views::View:
- void Layout() override;
-
- private:
- friend class SystemInfoDefaultViewTest;
-
- // Computes and returns the width for |date_view_| so that the separator to
- // its right has the same x-position as a separator in the tiles row above.
- // Depending on the width of the date string, we align the separator with
- // either the second or third separator in the tiles row (|kMinNumTileWidths|
- // and |kMaxNumTileWidths| respectively.
- static int CalculateDateViewWidth(int preferred_width);
-
- tray::DateView* date_view_;
-
- PowerStatusView* power_status_view_ = nullptr;
-
- TriView* tri_view_;
-
- DISALLOW_COPY_AND_ASSIGN(SystemInfoDefaultView);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_DATE_SYSTEM_INFO_DEFAULT_VIEW_H_
« no previous file with comments | « ash/common/system/date/date_view_unittest.cc ('k') | ash/common/system/date/system_info_default_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698