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

Side by Side Diff: ash/system/network/network_list.h

Issue 2883283004: Merged Tether and cellular network types in System Tray. (Closed)
Patch Set: fixed failing TetherServiceTest Created 3 years, 6 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/network/network_info.h ('k') | ash/system/network/network_list.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_NETWORK_NETWORK_LIST_H_ 5 #ifndef ASH_SYSTEM_NETWORK_NETWORK_LIST_H_
6 #define ASH_SYSTEM_NETWORK_NETWORK_LIST_H_ 6 #define ASH_SYSTEM_NETWORK_NETWORK_LIST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // network_icon::AnimationObserver: 114 // network_icon::AnimationObserver:
115 void NetworkIconChanged() override; 115 void NetworkIconChanged() override;
116 116
117 // Returns true if the info should be updated to the view for network, 117 // Returns true if the info should be updated to the view for network,
118 // otherwise false. 118 // otherwise false.
119 bool NeedUpdateViewForNetwork(const NetworkInfo& info) const; 119 bool NeedUpdateViewForNetwork(const NetworkInfo& info) const;
120 120
121 bool needs_relayout_; 121 bool needs_relayout_;
122 122
123 InfoLabel* no_wifi_networks_view_; 123 InfoLabel* no_wifi_networks_view_;
124 InfoLabel* no_cellular_networks_view_; 124 InfoLabel* no_mobile_networks_view_;
125 SectionHeaderRowView* cellular_header_view_; 125 SectionHeaderRowView* mobile_header_view_;
126 SectionHeaderRowView* tether_header_view_;
127 SectionHeaderRowView* wifi_header_view_; 126 SectionHeaderRowView* wifi_header_view_;
128 views::Separator* cellular_separator_view_; 127 views::Separator* mobile_separator_view_;
129 views::Separator* tether_separator_view_;
130 views::Separator* wifi_separator_view_; 128 views::Separator* wifi_separator_view_;
131 TriView* connection_warning_; 129 TriView* connection_warning_;
132 130
133 // An owned list of network info. 131 // An owned list of network info.
134 std::vector<std::unique_ptr<NetworkInfo>> network_list_; 132 std::vector<std::unique_ptr<NetworkInfo>> network_list_;
135 133
136 using NetworkMap = std::map<views::View*, std::string>; 134 using NetworkMap = std::map<views::View*, std::string>;
137 NetworkMap network_map_; 135 NetworkMap network_map_;
138 136
139 // A map of network guids to their view. 137 // A map of network guids to their view.
140 using NetworkGuidMap = std::map<std::string, HoverHighlightView*>; 138 using NetworkGuidMap = std::map<std::string, HoverHighlightView*>;
141 NetworkGuidMap network_guid_map_; 139 NetworkGuidMap network_guid_map_;
142 140
143 // Save a map of network guids to their infos against current |network_list_|. 141 // Save a map of network guids to their infos against current |network_list_|.
144 using NetworkInfoMap = std::map<std::string, std::unique_ptr<NetworkInfo>>; 142 using NetworkInfoMap = std::map<std::string, std::unique_ptr<NetworkInfo>>;
145 NetworkInfoMap last_network_info_map_; 143 NetworkInfoMap last_network_info_map_;
146 144
147 DISALLOW_COPY_AND_ASSIGN(NetworkListView); 145 DISALLOW_COPY_AND_ASSIGN(NetworkListView);
148 }; 146 };
149 147
150 } // namespace tray 148 } // namespace tray
151 } // namespace ash 149 } // namespace ash
152 150
153 #endif // ASH_SYSTEM_NETWORK_NETWORK_LIST_H_ 151 #endif // ASH_SYSTEM_NETWORK_NETWORK_LIST_H_
OLDNEW
« no previous file with comments | « ash/system/network/network_info.h ('k') | ash/system/network/network_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698