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

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

Issue 2843163003: Remove NetworkListDelegate (Closed)
Patch Set: Addressed review comments Created 3 years, 8 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/network_list_delegate.h ('k') | ash/system/network/network_list_view_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/network/network_list_view_base.h
diff --git a/ash/system/network/network_list_view_base.h b/ash/system/network/network_list_view_base.h
index c5eee110acd47054b8ee19ca83f0e319675298f9..cd37c9580ce1f22947e09f822e1f0172f3852e9b 100644
--- a/ash/system/network/network_list_view_base.h
+++ b/ash/system/network/network_list_view_base.h
@@ -14,12 +14,14 @@ class View;
}
namespace ash {
+namespace tray {
+class NetworkStateListDetailedView;
+}
// Base class for a list of available networks (and, in the case of VPNs, the
// list of available VPN providers).
class NetworkListViewBase {
public:
- NetworkListViewBase();
virtual ~NetworkListViewBase();
void set_container(views::View* container) { container_ = container; }
@@ -33,9 +35,18 @@ class NetworkListViewBase {
virtual bool IsNetworkEntry(views::View* view, std::string* guid) const = 0;
protected:
- views::View* container() { return container_; }
+ explicit NetworkListViewBase(
+ tray::NetworkStateListDetailedView* detailed_view);
+
+ tray::NetworkStateListDetailedView* detailed_view() const {
+ return detailed_view_;
+ }
+
+ views::View* container() const { return container_; }
private:
+ tray::NetworkStateListDetailedView* const detailed_view_;
+
// The container that holds the actual list entries.
views::View* container_ = nullptr;
« no previous file with comments | « ash/system/network/network_list_delegate.h ('k') | ash/system/network/network_list_view_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698