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_NETWORK_TRAY_VPN_H
6 #define ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H
8 #include "ash/system/chromeos/network/tray_network_state_observer.h"
9 #include "ash/system/tray/system_tray_item.h"
10 #include "base/memory/scoped_ptr.h"
13 class TrayNetworkStateObserver
;
16 class NetworkDetailedView
;
18 class VpnDetailedView
;
21 class TrayVPN
: public SystemTrayItem
,
22 public TrayNetworkStateObserver::Delegate
{
24 explicit TrayVPN(SystemTray
* system_tray
);
28 views::View
* CreateTrayView(user::LoginStatus status
) override
;
29 views::View
* CreateDefaultView(user::LoginStatus status
) override
;
30 views::View
* CreateDetailedView(user::LoginStatus status
) override
;
31 void DestroyTrayView() override
;
32 void DestroyDefaultView() override
;
33 void DestroyDetailedView() override
;
34 void UpdateAfterLoginStatusChange(user::LoginStatus status
) override
;
35 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment
) override
;
37 // TrayNetworkStateObserver::Delegate
38 void NetworkStateChanged() override
;
41 tray::VpnDefaultView
* default_
;
42 tray::NetworkDetailedView
* detailed_
;
43 scoped_ptr
<TrayNetworkStateObserver
> network_state_observer_
;
45 DISALLOW_COPY_AND_ASSIGN(TrayVPN
);
50 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H