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

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

Issue 683473005: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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/system/chromeos/tray_tracing.h ('k') | ash/system/date/date_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/system/user/login_status.h" 9 #include "ash/system/user/login_status.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "ui/views/controls/button/button.h" 11 #include "ui/views/controls/button/button.h"
12 #include "ui/views/view.h" 12 #include "ui/views/view.h"
13 13
14 namespace ash { 14 namespace ash {
15 namespace tray { 15 namespace tray {
16 class DateView; 16 class DateView;
17 } // namespace tray 17 } // namespace tray
18 18
19 class TrayPopupHeaderButton; 19 class TrayPopupHeaderButton;
20 20
21 class ASH_EXPORT DateDefaultView : public views::View, 21 class ASH_EXPORT DateDefaultView : public views::View,
22 public views::ButtonListener { 22 public views::ButtonListener {
23 public: 23 public:
24 explicit DateDefaultView(ash::user::LoginStatus login); 24 explicit DateDefaultView(ash::user::LoginStatus login);
25 25
26 virtual ~DateDefaultView(); 26 ~DateDefaultView() override;
27 27
28 views::View* GetHelpButtonView(); 28 views::View* GetHelpButtonView();
29 29
30 tray::DateView* GetDateView(); 30 tray::DateView* GetDateView();
31 const tray::DateView* GetDateView() const; 31 const tray::DateView* GetDateView() const;
32 32
33 private: 33 private:
34 // Overridden from views::ButtonListener. 34 // Overridden from views::ButtonListener.
35 virtual void ButtonPressed(views::Button* sender, 35 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
36 const ui::Event& event) override;
37 36
38 TrayPopupHeaderButton* help_; 37 TrayPopupHeaderButton* help_;
39 TrayPopupHeaderButton* shutdown_; 38 TrayPopupHeaderButton* shutdown_;
40 TrayPopupHeaderButton* lock_; 39 TrayPopupHeaderButton* lock_;
41 tray::DateView* date_view_; 40 tray::DateView* date_view_;
42 41
43 DISALLOW_COPY_AND_ASSIGN(DateDefaultView); 42 DISALLOW_COPY_AND_ASSIGN(DateDefaultView);
44 }; 43 };
45 44
46 } // namespace ash 45 } // namespace ash
47 46
48 #endif // ASH_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_ 47 #endif // ASH_SYSTEM_DATE_DATE_DEFAULT_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/chromeos/tray_tracing.h ('k') | ash/system/date/date_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698