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

Unified Diff: ash/system/chromeos/network/network_state_list_detailed_view.h

Issue 12387065: Convert TrayVPN to use new NetworkState code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser_tests Created 7 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 side-by-side diff with in-line comments
Download patch
Index: ash/system/chromeos/network/network_state_list_detailed_view.h
diff --git a/ash/system/chromeos/network/network_state_list_detailed_view.h b/ash/system/chromeos/network/network_state_list_detailed_view.h
index f5a6946c743d3cd2c8269ee0f187e72d363014e2..212f699afc046cd61ffdebf460c52a2cc3a2f704 100644
--- a/ash/system/chromeos/network/network_state_list_detailed_view.h
+++ b/ash/system/chromeos/network/network_state_list_detailed_view.h
@@ -26,10 +26,12 @@ class BubbleDelegateView;
}
namespace ash {
+
+class SystemTrayItem;
+
namespace internal {
class HoverHighlightView;
-class TrayNetwork;
class TrayPopupLabelButton;
namespace tray {
@@ -41,7 +43,13 @@ class NetworkStateListDetailedView : public NetworkDetailedView,
public ViewClickListener,
public network_icon::AnimationObserver {
public:
- NetworkStateListDetailedView(TrayNetwork* tray_network,
+ enum ListType {
+ LIST_TYPE_NETWORK,
+ LIST_TYPE_VPN
+ };
+
+ NetworkStateListDetailedView(SystemTrayItem* owner,
+ ListType list_type,
user::LoginStatus login);
virtual ~NetworkStateListDetailedView();
@@ -78,7 +86,7 @@ class NetworkStateListDetailedView : public NetworkDetailedView,
void UpdateHeaderButtons();
void UpdateNetworks(const NetworkStateList& networks);
- void UpdateNetworkListEntries();
+ void UpdateNetworkList();
bool CreateOrUpdateInfoLabel(
int index, const string16& text, views::Label** label);
bool UpdateNetworkChild(int index, const NetworkInfo* info);
@@ -96,8 +104,11 @@ class NetworkStateListDetailedView : public NetworkDetailedView,
bool ResetInfoBubble();
views::View* CreateNetworkInfoView();
- // Typed pointer to the owning tray item.
- TrayNetwork* tray_network_;
+ // Handle click (connect) action
+ void ConnectToNetwork(const std::string& service_path);
+
+ // Type of list (all networks or vpn)
+ ListType list_type_;
// Track login state.
user::LoginStatus login_;
@@ -125,6 +136,7 @@ class NetworkStateListDetailedView : public NetworkDetailedView,
TrayPopupLabelButton* other_wifi_;
TrayPopupLabelButton* turn_on_wifi_;
TrayPopupLabelButton* other_mobile_;
+ TrayPopupLabelButton* other_vpn_;
TrayPopupLabelButton* settings_;
TrayPopupLabelButton* proxy_settings_;
views::Label* scanning_view_;
« no previous file with comments | « ash/system/chromeos/network/network_icon.cc ('k') | ash/system/chromeos/network/network_state_list_detailed_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698