| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DATE_DEFAULT_VIEW_H_ | 5 #ifndef ASH_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_ |
| 6 #define ASH_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_ | 6 #define ASH_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/common/login_status.h" |
| 9 #include "ash/system/chromeos/shutdown_policy_observer.h" | 10 #include "ash/system/chromeos/shutdown_policy_observer.h" |
| 10 #include "ash/system/user/login_status.h" | |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "ui/views/controls/button/button.h" | 13 #include "ui/views/controls/button/button.h" |
| 14 #include "ui/views/view.h" | 14 #include "ui/views/view.h" |
| 15 | 15 |
| 16 namespace ash { | 16 namespace ash { |
| 17 namespace tray { | 17 namespace tray { |
| 18 class DateView; | 18 class DateView; |
| 19 } // namespace tray | 19 } // namespace tray |
| 20 | 20 |
| 21 class TrayPopupHeaderButton; | 21 class TrayPopupHeaderButton; |
| 22 | 22 |
| 23 // The system tray bubble view with the date and buttons for help, lock and |
| 24 // shutdown. |
| 23 class ASH_EXPORT DateDefaultView : public views::View, | 25 class ASH_EXPORT DateDefaultView : public views::View, |
| 24 public views::ButtonListener, | 26 public views::ButtonListener, |
| 25 public ash::ShutdownPolicyObserver { | 27 public ash::ShutdownPolicyObserver { |
| 26 public: | 28 public: |
| 27 explicit DateDefaultView(LoginStatus login); | 29 explicit DateDefaultView(LoginStatus login); |
| 28 | 30 |
| 29 ~DateDefaultView() override; | 31 ~DateDefaultView() override; |
| 30 | 32 |
| 31 views::View* GetHelpButtonView(); | 33 views::View* GetHelpButtonView(); |
| 32 const views::View* GetShutdownButtonViewForTest() const; | 34 const views::View* GetShutdownButtonViewForTest() const; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 47 tray::DateView* date_view_; | 49 tray::DateView* date_view_; |
| 48 | 50 |
| 49 base::WeakPtrFactory<DateDefaultView> weak_factory_; | 51 base::WeakPtrFactory<DateDefaultView> weak_factory_; |
| 50 | 52 |
| 51 DISALLOW_COPY_AND_ASSIGN(DateDefaultView); | 53 DISALLOW_COPY_AND_ASSIGN(DateDefaultView); |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 } // namespace ash | 56 } // namespace ash |
| 55 | 57 |
| 56 #endif // ASH_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_ | 58 #endif // ASH_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_ |
| OLD | NEW |