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

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: Create a Tether section in the system tray network list. 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 // network_icon::AnimationObserver: 103 // network_icon::AnimationObserver:
104 void NetworkIconChanged() override; 104 void NetworkIconChanged() override;
105 105
106 bool needs_relayout_; 106 bool needs_relayout_;
107 NetworkListDelegate* delegate_; 107 NetworkListDelegate* delegate_;
108 108
109 views::Label* no_wifi_networks_view_; 109 views::Label* no_wifi_networks_view_;
110 views::Label* no_cellular_networks_view_; 110 views::Label* no_cellular_networks_view_;
111 SectionHeaderRowView* cellular_header_view_; 111 SectionHeaderRowView* cellular_header_view_;
112 SectionHeaderRowView* tether_header_view_;
112 SectionHeaderRowView* wifi_header_view_; 113 SectionHeaderRowView* wifi_header_view_;
113 views::Separator* cellular_separator_view_; 114 views::Separator* cellular_separator_view_;
115 views::Separator* tether_separator_view_;
114 views::Separator* wifi_separator_view_; 116 views::Separator* wifi_separator_view_;
115 117
116 // An owned list of network info. 118 // An owned list of network info.
117 std::vector<std::unique_ptr<NetworkInfo>> network_list_; 119 std::vector<std::unique_ptr<NetworkInfo>> network_list_;
118 120
119 using NetworkMap = std::map<views::View*, std::string>; 121 using NetworkMap = std::map<views::View*, std::string>;
120 NetworkMap network_map_; 122 NetworkMap network_map_;
121 123
122 // A map of network service paths to their view. 124 // A map of network service paths to their view.
123 typedef std::map<std::string, views::View*> ServicePathMap; 125 typedef std::map<std::string, views::View*> ServicePathMap;
124 ServicePathMap service_path_map_; 126 ServicePathMap service_path_map_;
125 127
126 DISALLOW_COPY_AND_ASSIGN(NetworkListViewMd); 128 DISALLOW_COPY_AND_ASSIGN(NetworkListViewMd);
127 }; 129 };
128 130
129 } // namespace ash 131 } // namespace ash
130 132
131 #endif // ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_NETWORK_LIST_MD_H_ 133 #endif // ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_NETWORK_LIST_MD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698