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

Unified Diff: chrome/browser/chromeos/status/network_menu.h

Issue 3678006: Implement action interface in network_menu.js for 'connect'. (Closed)
Patch Set: Set status for non connected networks. Created 10 years, 2 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: chrome/browser/chromeos/status/network_menu.h
diff --git a/chrome/browser/chromeos/status/network_menu.h b/chrome/browser/chromeos/status/network_menu.h
index acd9acc3b28c015c6eaeb790d4aca5faee875c96..240a57300aa4501ea2a551f0b1822379eb36b100 100644
--- a/chrome/browser/chromeos/status/network_menu.h
+++ b/chrome/browser/chromeos/status/network_menu.h
@@ -74,6 +74,11 @@ class NetworkMenu : public views::ViewMenuDelegate,
// |index| is the index in menu_items_, set when the menu is built.
bool GetNetworkAt(int index, NetworkInfo* info) const;
+ // Connect or reconnect to the network at |index|.
+ void ConnectToNetworkAt(int index,
+ const std::string& passphrase,
+ const std::string& identity) const;
+
// menus::MenuModel implementation.
virtual bool HasIcons() const { return true; }
virtual int GetItemCount() const;
@@ -119,6 +124,8 @@ class NetworkMenu : public views::ViewMenuDelegate,
// Notify subclasses that connection to |network| was initiated.
virtual void OnConnectNetwork(const Network& network,
SkBitmap selected_icon_) {}
+ // Update the menu (e.g. when the network list or status has changed).
+ void UpdateMenu();
private:
enum MenuItemFlags {
@@ -164,6 +171,10 @@ class NetworkMenu : public views::ViewMenuDelegate,
// Shows network details in DOM UI options window.
void ShowTabbedNetworkSettings(const Network& network);
+ // Show a NetworkConfigView modal dialog instance.
+ // TODO(stevenjb): deprecate this once all of the UI is embedded in the menu.
+ void ShowNetworkConfigView(NetworkConfigView* view, bool focus_login) const;
+
// Set to true if we are currently refreshing the menu.
bool refreshing_menu_;

Powered by Google App Engine
This is Rietveld 408576698