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

Side by Side Diff: ash/system/date/tray_date.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/date/date_view_unittest.cc ('k') | ash/system/ime/tray_ime.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TRAY_DATE_H_ 5 #ifndef ASH_SYSTEM_DATE_TRAY_DATE_H_
6 #define ASH_SYSTEM_DATE_TRAY_DATE_H_ 6 #define ASH_SYSTEM_DATE_TRAY_DATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/system/date/clock_observer.h" 9 #include "ash/system/date/clock_observer.h"
10 #include "ash/system/tray/system_tray_item.h" 10 #include "ash/system/tray/system_tray_item.h"
(...skipping 20 matching lines...) Expand all
31 VERTICAL_CLOCK, 31 VERTICAL_CLOCK,
32 }; 32 };
33 33
34 enum DateAction { 34 enum DateAction {
35 NONE, 35 NONE,
36 SET_SYSTEM_TIME, 36 SET_SYSTEM_TIME,
37 SHOW_DATE_SETTINGS, 37 SHOW_DATE_SETTINGS,
38 }; 38 };
39 39
40 explicit TrayDate(SystemTray* system_tray); 40 explicit TrayDate(SystemTray* system_tray);
41 virtual ~TrayDate(); 41 ~TrayDate() override;
42 42
43 // Returns view for help button if it is exists. Returns NULL otherwise. 43 // Returns view for help button if it is exists. Returns NULL otherwise.
44 views::View* GetHelpButtonView() const; 44 views::View* GetHelpButtonView() const;
45 45
46 const tray::TimeView* GetTimeTrayForTesting() const; 46 const tray::TimeView* GetTimeTrayForTesting() const;
47 const DateDefaultView* GetDefaultViewForTesting() const; 47 const DateDefaultView* GetDefaultViewForTesting() const;
48 views::View* CreateDefaultViewForTesting(user::LoginStatus status); 48 views::View* CreateDefaultViewForTesting(user::LoginStatus status);
49 49
50 private: 50 private:
51 // Overridden from SystemTrayItem. 51 // Overridden from SystemTrayItem.
52 virtual views::View* CreateTrayView(user::LoginStatus status) override; 52 views::View* CreateTrayView(user::LoginStatus status) override;
53 virtual views::View* CreateDefaultView(user::LoginStatus status) override; 53 views::View* CreateDefaultView(user::LoginStatus status) override;
54 virtual views::View* CreateDetailedView(user::LoginStatus status) override; 54 views::View* CreateDetailedView(user::LoginStatus status) override;
55 virtual void DestroyTrayView() override; 55 void DestroyTrayView() override;
56 virtual void DestroyDefaultView() override; 56 void DestroyDefaultView() override;
57 virtual void DestroyDetailedView() override; 57 void DestroyDetailedView() override;
58 virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) override; 58 void UpdateAfterLoginStatusChange(user::LoginStatus status) override;
59 virtual void UpdateAfterShelfAlignmentChange( 59 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override;
60 ShelfAlignment alignment) override;
61 60
62 // Overridden from ClockObserver. 61 // Overridden from ClockObserver.
63 virtual void OnDateFormatChanged() override; 62 void OnDateFormatChanged() override;
64 virtual void OnSystemClockTimeUpdated() override; 63 void OnSystemClockTimeUpdated() override;
65 virtual void OnSystemClockCanSetTimeChanged(bool can_set_time) override; 64 void OnSystemClockCanSetTimeChanged(bool can_set_time) override;
66 virtual void Refresh() override; 65 void Refresh() override;
67 66
68 void SetupLabelForTimeTray(views::Label* label); 67 void SetupLabelForTimeTray(views::Label* label);
69 68
70 tray::TimeView* time_tray_; 69 tray::TimeView* time_tray_;
71 DateDefaultView* default_view_; 70 DateDefaultView* default_view_;
72 user::LoginStatus login_status_; 71 user::LoginStatus login_status_;
73 72
74 #if defined(OS_CHROMEOS) 73 #if defined(OS_CHROMEOS)
75 scoped_ptr<SystemClockObserver> system_clock_observer_; 74 scoped_ptr<SystemClockObserver> system_clock_observer_;
76 #endif 75 #endif
77 76
78 DISALLOW_COPY_AND_ASSIGN(TrayDate); 77 DISALLOW_COPY_AND_ASSIGN(TrayDate);
79 }; 78 };
80 79
81 } // namespace ash 80 } // namespace ash
82 81
83 #endif // ASH_SYSTEM_DATE_TRAY_DATE_H_ 82 #endif // ASH_SYSTEM_DATE_TRAY_DATE_H_
OLDNEW
« no previous file with comments | « ash/system/date/date_view_unittest.cc ('k') | ash/system/ime/tray_ime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698