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

Side by Side Diff: ash/common/system/chromeos/network/network_list_md.h

Issue 2701463003: Create a Tether section in the system tray network list. (Closed)
Patch Set: Comments. Created 3 years, 10 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
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_COMMON_SYSTEM_CHROMEOS_NETWORK_NETWORK_LIST_MD_H_ 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_NETWORK_LIST_MD_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_NETWORK_LIST_MD_H_ 6 #define ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_NETWORK_LIST_MD_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 // network_icon::AnimationObserver: 102 // network_icon::AnimationObserver:
103 void NetworkIconChanged() override; 103 void NetworkIconChanged() override;
104 104
105 bool needs_relayout_; 105 bool needs_relayout_;
106 NetworkListDelegate* delegate_; 106 NetworkListDelegate* delegate_;
107 107
108 views::Label* no_wifi_networks_view_; 108 views::Label* no_wifi_networks_view_;
109 views::Label* no_cellular_networks_view_; 109 views::Label* no_cellular_networks_view_;
110 SectionHeaderRowView* cellular_header_view_; 110 SectionHeaderRowView* cellular_header_view_;
111 SectionHeaderRowView* tether_header_view_;
111 SectionHeaderRowView* wifi_header_view_; 112 SectionHeaderRowView* wifi_header_view_;
112 views::Separator* cellular_separator_view_; 113 views::Separator* cellular_separator_view_;
114 views::Separator* tether_separator_view_;
113 views::Separator* wifi_separator_view_; 115 views::Separator* wifi_separator_view_;
114 116
115 // An owned list of network info. 117 // An owned list of network info.
116 std::vector<std::unique_ptr<NetworkInfo>> network_list_; 118 std::vector<std::unique_ptr<NetworkInfo>> network_list_;
117 119
118 using NetworkMap = std::map<views::View*, std::string>; 120 using NetworkMap = std::map<views::View*, std::string>;
119 NetworkMap network_map_; 121 NetworkMap network_map_;
120 122
121 // A map of network guids to their view. 123 // A map of network guids to their view.
122 typedef std::map<std::string, views::View*> NetworkGuidMap; 124 typedef std::map<std::string, views::View*> NetworkGuidMap;
123 NetworkGuidMap network_guid_map_; 125 NetworkGuidMap network_guid_map_;
124 126
125 DISALLOW_COPY_AND_ASSIGN(NetworkListViewMd); 127 DISALLOW_COPY_AND_ASSIGN(NetworkListViewMd);
126 }; 128 };
127 129
128 } // namespace ash 130 } // namespace ash
129 131
130 #endif // ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_NETWORK_LIST_MD_H_ 132 #endif // ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_NETWORK_LIST_MD_H_
OLDNEW
« no previous file with comments | « ash/common/system/chromeos/network/network_info.h ('k') | ash/common/system/chromeos/network/network_list_md.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698