| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SYSTEM_INFO_DEFAULT_VIEW_H_ | 5 #ifndef ASH_SYSTEM_DATE_SYSTEM_INFO_DEFAULT_VIEW_H_ |
| 6 #define ASH_SYSTEM_DATE_SYSTEM_INFO_DEFAULT_VIEW_H_ | 6 #define ASH_SYSTEM_DATE_SYSTEM_INFO_DEFAULT_VIEW_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/login_status.h" | |
| 10 #include "base/macros.h" | 9 #include "base/macros.h" |
| 11 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
| 12 | 11 |
| 13 namespace ash { | 12 namespace ash { |
| 14 class PowerStatusView; | 13 class PowerStatusView; |
| 15 class SystemTrayItem; | 14 class SystemTrayItem; |
| 16 class TriView; | 15 class TriView; |
| 17 | 16 |
| 18 namespace tray { | 17 namespace tray { |
| 19 class DateView; | 18 class DateView; |
| 20 } // namespace tray | 19 } // namespace tray |
| 21 | 20 |
| 22 // The default view for the system info row in the system menu. Contains the | 21 // The default view for the system info row in the system menu. Contains the |
| 23 // current date and, if a battery is present, a string showing the current | 22 // current date and, if a battery is present, a string showing the current |
| 24 // power status. | 23 // power status. |
| 25 class ASH_EXPORT SystemInfoDefaultView : public views::View { | 24 class ASH_EXPORT SystemInfoDefaultView : public views::View { |
| 26 public: | 25 public: |
| 27 SystemInfoDefaultView(SystemTrayItem* owner, LoginStatus login); | 26 explicit SystemInfoDefaultView(SystemTrayItem* owner); |
| 28 | |
| 29 ~SystemInfoDefaultView() override; | 27 ~SystemInfoDefaultView() override; |
| 30 | 28 |
| 31 tray::DateView* GetDateView(); | 29 tray::DateView* GetDateView(); |
| 32 const tray::DateView* GetDateView() const; | 30 const tray::DateView* GetDateView() const; |
| 33 | 31 |
| 34 // views::View: | 32 // views::View: |
| 35 void Layout() override; | 33 void Layout() override; |
| 36 | 34 |
| 37 private: | 35 private: |
| 38 friend class SystemInfoDefaultViewTest; | 36 friend class SystemInfoDefaultViewTest; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 49 PowerStatusView* power_status_view_ = nullptr; | 47 PowerStatusView* power_status_view_ = nullptr; |
| 50 | 48 |
| 51 TriView* tri_view_; | 49 TriView* tri_view_; |
| 52 | 50 |
| 53 DISALLOW_COPY_AND_ASSIGN(SystemInfoDefaultView); | 51 DISALLOW_COPY_AND_ASSIGN(SystemInfoDefaultView); |
| 54 }; | 52 }; |
| 55 | 53 |
| 56 } // namespace ash | 54 } // namespace ash |
| 57 | 55 |
| 58 #endif // ASH_SYSTEM_DATE_SYSTEM_INFO_DEFAULT_VIEW_H_ | 56 #endif // ASH_SYSTEM_DATE_SYSTEM_INFO_DEFAULT_VIEW_H_ |
| OLD | NEW |