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

Side by Side Diff: ash/system/chromeos/network/tray_vpn.h

Issue 11415014: Stop using shell::GetInstance()->system_tray() in system tray items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix single-letter typo :(. Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « ash/system/chromeos/network/tray_sms.cc ('k') | ash/system/chromeos/network/tray_vpn.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
OLDNEW
« no previous file with comments | « ash/system/chromeos/network/tray_sms.cc ('k') | ash/system/chromeos/network/tray_vpn.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698