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

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

Issue 2821363002: cros: Disable system tray help/lock buttons during supervised user creation (Closed)
Patch Set: fix browser test Created 3 years, 8 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/system/bluetooth/tray_bluetooth.cc ('k') | ash/system/date/system_info_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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SYSTEM_INFO_DEFAULT_VIEW_H_ 5 #ifndef ASH_SYSTEM_DATE_SYSTEM_INFO_DEFAULT_VIEW_H_
6 #define ASH_SYSTEM_DATE_SYSTEM_INFO_DEFAULT_VIEW_H_ 6 #define ASH_SYSTEM_DATE_SYSTEM_INFO_DEFAULT_VIEW_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/login_status.h"
10 #include "base/macros.h" 9 #include "base/macros.h"
11 #include "ui/views/view.h" 10 #include "ui/views/view.h"
12 11
13 namespace ash { 12 namespace ash {
14 class PowerStatusView; 13 class PowerStatusView;
15 class SystemTrayItem; 14 class SystemTrayItem;
16 class TriView; 15 class TriView;
17 16
18 namespace tray { 17 namespace tray {
19 class DateView; 18 class DateView;
20 } // namespace tray 19 } // namespace tray
21 20
22 // The default view for the system info row in the system menu. Contains the 21 // The default view for the system info row in the system menu. Contains the
23 // current date and, if a battery is present, a string showing the current 22 // current date and, if a battery is present, a string showing the current
24 // power status. 23 // power status.
25 class ASH_EXPORT SystemInfoDefaultView : public views::View { 24 class ASH_EXPORT SystemInfoDefaultView : public views::View {
26 public: 25 public:
27 SystemInfoDefaultView(SystemTrayItem* owner, LoginStatus login); 26 explicit SystemInfoDefaultView(SystemTrayItem* owner);
28
29 ~SystemInfoDefaultView() override; 27 ~SystemInfoDefaultView() override;
30 28
31 tray::DateView* GetDateView(); 29 tray::DateView* GetDateView();
32 const tray::DateView* GetDateView() const; 30 const tray::DateView* GetDateView() const;
33 31
34 // views::View: 32 // views::View:
35 void Layout() override; 33 void Layout() override;
36 34
37 private: 35 private:
38 friend class SystemInfoDefaultViewTest; 36 friend class SystemInfoDefaultViewTest;
(...skipping 10 matching lines...) Expand all
49 PowerStatusView* power_status_view_ = nullptr; 47 PowerStatusView* power_status_view_ = nullptr;
50 48
51 TriView* tri_view_; 49 TriView* tri_view_;
52 50
53 DISALLOW_COPY_AND_ASSIGN(SystemInfoDefaultView); 51 DISALLOW_COPY_AND_ASSIGN(SystemInfoDefaultView);
54 }; 52 };
55 53
56 } // namespace ash 54 } // namespace ash
57 55
58 #endif // ASH_SYSTEM_DATE_SYSTEM_INFO_DEFAULT_VIEW_H_ 56 #endif // ASH_SYSTEM_DATE_SYSTEM_INFO_DEFAULT_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/bluetooth/tray_bluetooth.cc ('k') | ash/system/date/system_info_default_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698