Implement action interface in network_menu.js for 'connect'.
* Added NetworkMenu::UpdateMenu()
* Added NetworkMenu::ConnectToNetworkAt()

BUG=http://code.google.com/p/chromium-os/issues/detail?id=7343
TEST=Test the network menu (it still looks ugly). Specifically, selecting a non secure network, or one with a certificate installed should connect to it. Also, temporarily, using 'space' or 'return' to select a network should connect to it without closing the menu.

Review URL: http://codereview.chromium.org/3678006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62598 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/chromeos/cros/network_library.h b/chrome/browser/chromeos/cros/network_library.h
index 795a0df0..668783c 100644
--- a/chrome/browser/chromeos/cros/network_library.h
+++ b/chrome/browser/chromeos/cros/network_library.h
@@ -227,6 +227,9 @@
   // This not translated and should be only used for debugging purposes.
   std::string GetEncryptionString();
 
+  // Return true if cert_path_ indicates that we have loaded the certificate.
+  bool IsCertificateLoaded() const;
+
  protected:
   ConnectionSecurity encryption_;
   std::string passphrase_;