OLD | NEW |
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_NETWORK_TRAY_VPN_H | 5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H |
6 #define ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H | 6 #define ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H |
7 | 7 |
8 #include "ash/system/chromeos/network/network_observer.h" | 8 #include "ash/system/chromeos/network/network_observer.h" |
9 #include "ash/system/tray/system_tray_item.h" | 9 #include "ash/system/tray/system_tray_item.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 namespace internal { | 13 namespace internal { |
14 | 14 |
15 namespace tray { | 15 namespace tray { |
16 class NetworkDetailedView; | 16 class NetworkDetailedView; |
17 class VpnDefaultView; | 17 class VpnDefaultView; |
18 class VpnDetailedView; | 18 class VpnDetailedView; |
19 } | 19 } |
20 | 20 |
21 class TrayVPN : public SystemTrayItem, | 21 class TrayVPN : public SystemTrayItem, |
22 public NetworkObserver { | 22 public NetworkObserver { |
23 public: | 23 public: |
24 TrayVPN(); | 24 explicit TrayVPN(SystemTray* system_tray); |
25 virtual ~TrayVPN(); | 25 virtual ~TrayVPN(); |
26 | 26 |
27 // Overridden from SystemTrayItem. | 27 // Overridden from SystemTrayItem. |
28 virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE; | 28 virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE; |
29 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; | 29 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; |
30 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE; | 30 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE; |
31 virtual views::View* CreateNotificationView( | 31 virtual views::View* CreateNotificationView( |
32 user::LoginStatus status) OVERRIDE; | 32 user::LoginStatus status) OVERRIDE; |
33 virtual void DestroyTrayView() OVERRIDE; | 33 virtual void DestroyTrayView() OVERRIDE; |
34 virtual void DestroyDefaultView() OVERRIDE; | 34 virtual void DestroyDefaultView() OVERRIDE; |
(...skipping 18 matching lines...) Expand all Loading... |
53 tray::VpnDefaultView* default_; | 53 tray::VpnDefaultView* default_; |
54 tray::NetworkDetailedView* detailed_; | 54 tray::NetworkDetailedView* detailed_; |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(TrayVPN); | 56 DISALLOW_COPY_AND_ASSIGN(TrayVPN); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace internal | 59 } // namespace internal |
60 } // namespace ash | 60 } // namespace ash |
61 | 61 |
62 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H | 62 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H |
OLD | NEW |