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

Side by Side Diff: ash/common/system/date/date_default_view.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs 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 unified diff | Download patch
« no previous file with comments | « ash/common/system/date/clock_observer.h ('k') | ash/common/system/date/date_default_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ash/common/system/date/clock_observer.h ('k') | ash/common/system/date/date_default_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698