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.
5 #ifndef ASH_SYSTEM_CHROMEOS_ENTERPRISE_TRAY_ENTERPRISE_H
6 #define ASH_SYSTEM_CHROMEOS_ENTERPRISE_TRAY_ENTERPRISE_H
8 #include "ash/system/chromeos/enterprise/enterprise_domain_observer.h"
9 #include "ash/system/tray/system_tray_item.h"
10 #include "ash/system/tray/view_click_listener.h"
21 class TrayEnterprise : public SystemTrayItem,
22 public ViewClickListener,
23 public EnterpriseDomainObserver {
25 explicit TrayEnterprise(SystemTray* system_tray);
26 virtual ~TrayEnterprise();
28 // If message is not empty updates content of default view, otherwise hides
30 void UpdateEnterpriseMessage();
32 // Overridden from SystemTrayItem.
33 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
34 virtual void DestroyDefaultView() OVERRIDE;
36 // Overridden from EnterpriseDomainObserver.
37 virtual void OnEnterpriseDomainChanged() OVERRIDE;
39 // Overridden from ViewClickListener.
40 virtual void OnViewClicked(views::View* sender) OVERRIDE;
43 LabelTrayView* tray_view_;
45 DISALLOW_COPY_AND_ASSIGN(TrayEnterprise);
48 } // namespace internal
51 #endif // ASH_SYSTEM_CHROMEOS_ENTERPRISE_TRAY_ENTERPRISE_H