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

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

Issue 2742513003: Revert of Remove a lot of pre-MD code from NetworkStateListDetailedView (Closed)
Patch Set: Created 3 years, 9 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/common/system/chromeos/network/network_state_list_detailed_view.h
diff --git a/ash/common/system/chromeos/network/network_state_list_detailed_view.h b/ash/common/system/chromeos/network/network_state_list_detailed_view.h
index d83fa85c990e8f80e1b5ca302387825dbe6a16a2..a3801c37d996b4a6570d66e2b0ebf06c594d31ae 100644
--- a/ash/common/system/chromeos/network/network_state_list_detailed_view.h
+++ b/ash/common/system/chromeos/network/network_state_list_detailed_view.h
@@ -27,10 +27,13 @@
namespace views {
class BubbleDialogDelegateView;
+class ImageButton;
}
namespace ash {
class SystemTrayItem;
+class ThrobberView;
+class TrayPopupHeaderButton;
namespace tray {
@@ -63,15 +66,33 @@
// Launches the WebUI settings in a browser and closes the system menu.
void ShowSettings();
+ // Create UI components.
+ void CreateHeaderEntry();
+ void CreateNetworkExtra();
+
// Update UI components.
+ void UpdateTechnologyButton(TrayPopupHeaderButton* button,
+ const chromeos::NetworkTypePattern& technology);
void UpdateNetworkList();
void UpdateHeaderButtons();
+
+ bool OrderChild(views::View* view, int index);
+
+ // Adds a settings entry when logged in, and an entry for changing proxy
+ // settings otherwise.
+ void CreateSettingsEntry();
+
+ // Sets the visibility and focusability of Network Info Button and
+ // WiFi scanning indicator. This will hide Network info button and display
+ // the scanning indicator when |is_scanning| is true.
+ void SetScanningStateForThrobberView(bool is_scanning);
// Create and manage the network info bubble.
void ToggleInfoBubble();
bool ResetInfoBubble();
void OnInfoBubbleDestroyed();
views::View* CreateNetworkInfoView();
+ const gfx::ImageSkia* GetControlledByExtensionIcon();
// Creates the view of an extra icon appearing next to the network name
// indicating that the network is controlled by an extension. If no extension
@@ -80,6 +101,9 @@
// Periodically request a network scan.
void CallRequestScan();
+
+ // Handle toggile mobile action
+ void ToggleMobile();
// NetworkListDelegate:
views::View* CreateViewForNetwork(const NetworkInfo& info) override;
@@ -98,12 +122,26 @@
// Track login state.
LoginStatus login_;
- views::CustomButton* info_button_;
- views::CustomButton* settings_button_;
- views::CustomButton* proxy_settings_button_;
+ // Tracks the WiFi scanning state to help detect if the state has changed. Use
+ // NetworkHandler::GetScanningByType() if you require the current wifi
+ // scanning state.
+ bool prev_wifi_scanning_state_;
+
+ // Not used for material design.
+ views::ImageButton* info_icon_;
+
+ // Only used in material design.
+ views::CustomButton* info_button_md_;
+ views::CustomButton* settings_button_md_;
+ views::CustomButton* proxy_settings_button_md_;
// A small bubble for displaying network info.
views::BubbleDialogDelegateView* info_bubble_;
+
+ // WiFi scanning throbber.
+ ThrobberView* scanning_throbber_;
+
+ gfx::Image controlled_by_extension_icon_;
std::unique_ptr<NetworkListViewBase> network_list_view_;

Powered by Google App Engine
This is Rietveld 408576698