Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / ash / system / date / date_default_view.h
blob2b80b028ae95402f31bd657ac9bf9b08aeea1bdc
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.
5 #ifndef ASH_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_
6 #define ASH_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_
8 #include "ash/ash_export.h"
9 #include "ash/system/user/login_status.h"
10 #include "base/macros.h"
11 #include "ui/views/controls/button/button.h"
12 #include "ui/views/view.h"
14 namespace ash {
15 namespace tray {
16 class DateView;
17 } // namespace tray
19 class TrayPopupHeaderButton;
21 class ASH_EXPORT DateDefaultView : public views::View,
22 public views::ButtonListener {
23 public:
24 explicit DateDefaultView(ash::user::LoginStatus login);
26 virtual ~DateDefaultView();
28 views::View* GetHelpButtonView();
30 tray::DateView* GetDateView();
31 const tray::DateView* GetDateView() const;
33 private:
34 // Overridden from views::ButtonListener.
35 virtual void ButtonPressed(views::Button* sender,
36 const ui::Event& event) OVERRIDE;
38 TrayPopupHeaderButton* help_;
39 TrayPopupHeaderButton* shutdown_;
40 TrayPopupHeaderButton* lock_;
41 tray::DateView* date_view_;
43 DISALLOW_COPY_AND_ASSIGN(DateDefaultView);
46 } // namespace ash
48 #endif // ASH_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_