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

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

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_ENTERPRISE_TRAY_ENTERPRISE_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_ENTERPRISE_TRAY_ENTERPRISE_H_
7
8 #include "ash/common/system/chromeos/enterprise/enterprise_domain_observer.h"
9 #include "ash/common/system/tray/system_tray_item.h"
10 #include "ash/common/system/tray/view_click_listener.h"
11 #include "base/macros.h"
12
13 namespace ash {
14 class LabelTrayView;
15 class SystemTray;
16
17 class TrayEnterprise : public SystemTrayItem,
18 public ViewClickListener,
19 public EnterpriseDomainObserver {
20 public:
21 explicit TrayEnterprise(SystemTray* system_tray);
22 ~TrayEnterprise() override;
23
24 // If message is not empty updates content of default view, otherwise hides
25 // tray items.
26 void UpdateEnterpriseMessage();
27
28 // Overridden from SystemTrayItem.
29 views::View* CreateDefaultView(LoginStatus status) override;
30 void DestroyDefaultView() override;
31
32 // Overridden from EnterpriseDomainObserver.
33 void OnEnterpriseDomainChanged() override;
34
35 // Overridden from ViewClickListener.
36 void OnViewClicked(views::View* sender) override;
37
38 private:
39 LabelTrayView* tray_view_;
40
41 DISALLOW_COPY_AND_ASSIGN(TrayEnterprise);
42 };
43
44 } // namespace ash
45
46 #endif // ASH_COMMON_SYSTEM_CHROMEOS_ENTERPRISE_TRAY_ENTERPRISE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698