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

Side by Side Diff: ui/chromeos/network/network_list.h

Issue 811623002: Add logging for slow device events, limit network UI update rate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@patch_441650
Patch Set: Feedback Created 6 years 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 | « ui/chromeos/DEPS ('k') | ui/chromeos/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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_CHROMEOS_NETWORK_NETWORK_LIST_H_ 5 #ifndef UI_CHROMEOS_NETWORK_NETWORK_LIST_H_
6 #define UI_CHROMEOS_NETWORK_NETWORK_LIST_H_ 6 #define UI_CHROMEOS_NETWORK_NETWORK_LIST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 26 matching lines...) Expand all
37 // Returns whether |view| is a View that represents a network in the list. 37 // Returns whether |view| is a View that represents a network in the list.
38 // |service_path| is set to the service-path of the network if this returns 38 // |service_path| is set to the service-path of the network if this returns
39 // true, and remains unchanged if this returns false. 39 // true, and remains unchanged if this returns false.
40 bool IsViewInList(views::View* view, std::string* service_path) const; 40 bool IsViewInList(views::View* view, std::string* service_path) const;
41 41
42 void set_content_view(views::View* content) { content_ = content; } 42 void set_content_view(views::View* content) { content_ = content; }
43 43
44 private: 44 private:
45 void UpdateNetworks( 45 void UpdateNetworks(
46 const chromeos::NetworkStateHandler::NetworkStateList& networks); 46 const chromeos::NetworkStateHandler::NetworkStateList& networks);
47 void UpdateNetworkIcons();
47 void UpdateNetworkListInternal(); 48 void UpdateNetworkListInternal();
49 void HandleRelayout();
48 bool UpdateNetworkListEntries(std::set<std::string>* new_service_paths); 50 bool UpdateNetworkListEntries(std::set<std::string>* new_service_paths);
51 bool UpdateNetworkChildren(std::set<std::string>* new_service_paths,
52 int* child_index,
53 bool highlighted);
49 bool UpdateNetworkChild(int index, const NetworkInfo* info); 54 bool UpdateNetworkChild(int index, const NetworkInfo* info);
50 bool PlaceViewAtIndex(views::View* view, int index); 55 bool PlaceViewAtIndex(views::View* view, int index);
51 bool UpdateInfoLabel(int message_id, int index, views::Label** label); 56 bool UpdateInfoLabel(int message_id, int index, views::Label** label);
52 57
53 // network_icon::AnimationObserver: 58 // network_icon::AnimationObserver:
54 virtual void NetworkIconChanged() override; 59 virtual void NetworkIconChanged() override;
55 60
56 NetworkListDelegate* delegate_; 61 NetworkListDelegate* delegate_;
57 views::View* content_; 62 views::View* content_;
58 63
(...skipping 10 matching lines...) Expand all
69 // A map of network service paths to their view. 74 // A map of network service paths to their view.
70 typedef std::map<std::string, views::View*> ServicePathMap; 75 typedef std::map<std::string, views::View*> ServicePathMap;
71 ServicePathMap service_path_map_; 76 ServicePathMap service_path_map_;
72 77
73 DISALLOW_COPY_AND_ASSIGN(NetworkListView); 78 DISALLOW_COPY_AND_ASSIGN(NetworkListView);
74 }; 79 };
75 80
76 } // namespace ui 81 } // namespace ui
77 82
78 #endif // UI_CHROMEOS_NETWORK_NETWORK_LIST_H_ 83 #endif // UI_CHROMEOS_NETWORK_NETWORK_LIST_H_
OLDNEW
« no previous file with comments | « ui/chromeos/DEPS ('k') | ui/chromeos/network/network_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698