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

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

Issue 2109293002: mash: Convert system tray network item to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak string Created 4 years, 5 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
« 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
(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_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H
6 #define ASH_SYSTEM_CHROMEOS_NETWORK_TRAY_VPN_H
7
8 #include <memory>
9
10 #include "ash/common/system/tray/system_tray_item.h"
11 #include "ash/system/chromeos/network/tray_network_state_observer.h"
12 #include "base/macros.h"
13
14 namespace ash {
15 class TrayNetworkStateObserver;
16
17 namespace tray {
18 class NetworkDetailedView;
19 class VpnDefaultView;
20 class VpnDetailedView;
21 }
22
23 class TrayVPN : public SystemTrayItem,
24 public TrayNetworkStateObserver::Delegate {
25 public:
26 explicit TrayVPN(SystemTray* system_tray);
27 ~TrayVPN() override;
28
29 // SystemTrayItem
30 views::View* CreateTrayView(LoginStatus status) override;
31 views::View* CreateDefaultView(LoginStatus status) override;
32 views::View* CreateDetailedView(LoginStatus status) override;
33 void DestroyTrayView() override;
34 void DestroyDefaultView() override;
35 void DestroyDetailedView() override;
36 void UpdateAfterLoginStatusChange(LoginStatus status) override;
37 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override;
38
39 // TrayNetworkStateObserver::Delegate
40 void NetworkStateChanged() override;
41
42 private:
43 tray::VpnDefaultView* default_;
44 tray::NetworkDetailedView* detailed_;
45 std::unique_ptr<TrayNetworkStateObserver> network_state_observer_;
46
47 DISALLOW_COPY_AND_ASSIGN(TrayVPN);
48 };
49
50 } // namespace ash
51
52 #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