OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ASH_COMMON_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_ | |
6 #define ASH_COMMON_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_ | |
7 | |
8 #include "ash/ash_export.h" | |
9 #include "ash/common/login_status.h" | |
10 #include "base/macros.h" | |
11 #include "ui/views/controls/button/button.h" | |
12 #include "ui/views/view.h" | |
13 | |
14 namespace ash { | |
15 namespace tray { | |
16 class DateView; | |
17 } // namespace tray | |
18 | |
19 class SystemTrayItem; | |
20 class TrayPopupHeaderButton; | |
21 | |
22 // The system tray bubble view with the date and buttons for help, lock and | |
23 // shutdown. | |
24 // TODO(tdanderson): Remove this class once material design is enabled by | |
25 // default. See crbug.com/614453. | |
26 class ASH_EXPORT DateDefaultView : public views::View, | |
27 public views::ButtonListener { | |
28 public: | |
29 DateDefaultView(SystemTrayItem* owner, LoginStatus login); | |
30 | |
31 ~DateDefaultView() override; | |
32 | |
33 views::View* GetHelpButtonView(); | |
34 const views::View* GetShutdownButtonViewForTest() const; | |
35 | |
36 tray::DateView* GetDateView(); | |
37 const tray::DateView* GetDateView() const; | |
38 | |
39 private: | |
40 // Overridden from views::ButtonListener. | |
41 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | |
42 | |
43 TrayPopupHeaderButton* help_button_; | |
44 TrayPopupHeaderButton* shutdown_button_; | |
45 TrayPopupHeaderButton* lock_button_; | |
46 tray::DateView* date_view_; | |
47 | |
48 DISALLOW_COPY_AND_ASSIGN(DateDefaultView); | |
49 }; | |
50 | |
51 } // namespace ash | |
52 | |
53 #endif // ASH_COMMON_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_ | |
OLD | NEW |