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

Side by Side Diff: ash/system/chromeos/enterprise/tray_enterprise.h

Issue 2041233005: Moves ash::user::LoginStatus to ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 4 years, 6 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
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_CHROMEOS_ENTERPRISE_TRAY_ENTERPRISE_H 5 #ifndef ASH_SYSTEM_CHROMEOS_ENTERPRISE_TRAY_ENTERPRISE_H
6 #define ASH_SYSTEM_CHROMEOS_ENTERPRISE_TRAY_ENTERPRISE_H 6 #define ASH_SYSTEM_CHROMEOS_ENTERPRISE_TRAY_ENTERPRISE_H
7 7
8 #include "ash/system/chromeos/enterprise/enterprise_domain_observer.h" 8 #include "ash/system/chromeos/enterprise/enterprise_domain_observer.h"
9 #include "ash/system/tray/system_tray_item.h" 9 #include "ash/system/tray/system_tray_item.h"
10 #include "ash/system/tray/view_click_listener.h" 10 #include "ash/system/tray/view_click_listener.h"
(...skipping 12 matching lines...) Expand all
23 public EnterpriseDomainObserver { 23 public EnterpriseDomainObserver {
24 public: 24 public:
25 explicit TrayEnterprise(SystemTray* system_tray); 25 explicit TrayEnterprise(SystemTray* system_tray);
26 ~TrayEnterprise() override; 26 ~TrayEnterprise() override;
27 27
28 // If message is not empty updates content of default view, otherwise hides 28 // If message is not empty updates content of default view, otherwise hides
29 // tray items. 29 // tray items.
30 void UpdateEnterpriseMessage(); 30 void UpdateEnterpriseMessage();
31 31
32 // Overridden from SystemTrayItem. 32 // Overridden from SystemTrayItem.
33 views::View* CreateDefaultView(user::LoginStatus status) override; 33 views::View* CreateDefaultView(LoginStatus status) override;
34 void DestroyDefaultView() override; 34 void DestroyDefaultView() override;
35 35
36 // Overridden from EnterpriseDomainObserver. 36 // Overridden from EnterpriseDomainObserver.
37 void OnEnterpriseDomainChanged() override; 37 void OnEnterpriseDomainChanged() override;
38 38
39 // Overridden from ViewClickListener. 39 // Overridden from ViewClickListener.
40 void OnViewClicked(views::View* sender) override; 40 void OnViewClicked(views::View* sender) override;
41 41
42 private: 42 private:
43 LabelTrayView* tray_view_; 43 LabelTrayView* tray_view_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(TrayEnterprise); 45 DISALLOW_COPY_AND_ASSIGN(TrayEnterprise);
46 }; 46 };
47 47
48 } // namespace ash 48 } // namespace ash
49 49
50 #endif // ASH_SYSTEM_CHROMEOS_ENTERPRISE_TRAY_ENTERPRISE_H 50 #endif // ASH_SYSTEM_CHROMEOS_ENTERPRISE_TRAY_ENTERPRISE_H
51 51
OLDNEW
« no previous file with comments | « ash/system/chromeos/brightness/tray_brightness.cc ('k') | ash/system/chromeos/enterprise/tray_enterprise.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698