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

Unified Diff: ash/system/network/vpn_list_view.h

Issue 2869053002: Merge NetworkListViewBase hierarchy and NetworkStateListDetailedView (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/network/tray_vpn.cc ('k') | ash/system/network/vpn_list_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/network/vpn_list_view.h
diff --git a/ash/system/network/vpn_list_view.h b/ash/system/network/vpn_list_view.h
index e59c8d5b584abf4150fa9c1a135504938f227672..8b3a2b86e300ef8459bfdfce883ef3be2b247016 100644
--- a/ash/system/network/vpn_list_view.h
+++ b/ash/system/network/vpn_list_view.h
@@ -8,7 +8,7 @@
#include <map>
#include <string>
-#include "ash/system/network/network_list_view_base.h"
+#include "ash/system/network/network_state_list_detailed_view.h"
#include "ash/system/network/vpn_list.h"
#include "base/macros.h"
#include "chromeos/network/network_state_handler.h"
@@ -23,8 +23,6 @@ class View;
namespace ash {
namespace tray {
-class NetworkStateListDetailedView;
-}
// A list of VPN providers and networks that shows VPN providers and networks in
// a hierarchical layout, allowing the user to see at a glance which provider a
@@ -39,13 +37,14 @@ class NetworkStateListDetailedView;
// attempt. Clicking on the currently connected or connecting network shows its
// configuration dialog. Clicking on a provider shows the provider's "add
// network" dialog.
-class VPNListView : public NetworkListViewBase, public VpnList::Observer {
+class VPNListView : public NetworkStateListDetailedView,
+ public VpnList::Observer {
public:
- explicit VPNListView(tray::NetworkStateListDetailedView* detailed_view);
+ VPNListView(SystemTrayItem* owner, LoginStatus login);
~VPNListView() override;
- // NetworkListViewBase:
- void Update() override;
+ // NetworkStateListDetailedView:
+ void UpdateNetworkList() override;
bool IsNetworkEntry(views::View* view, std::string* guid) const override;
// VpnList::Observer:
@@ -78,6 +77,7 @@ class VPNListView : public NetworkListViewBase, public VpnList::Observer {
DISALLOW_COPY_AND_ASSIGN(VPNListView);
};
+} // namespace tray
} // namespace ash
#endif // ASH_SYSTEM_NETWORK_VPN_LIST_VIEW_H_
« no previous file with comments | « ash/system/network/tray_vpn.cc ('k') | ash/system/network/vpn_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698