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

Unified Diff: chrome/browser/chromeos/options/wifi_config_view.h

Issue 6596064: UI for 802.1x connections. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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: chrome/browser/chromeos/options/wifi_config_view.h
===================================================================
--- chrome/browser/chromeos/options/wifi_config_view.h (revision 76806)
+++ chrome/browser/chromeos/options/wifi_config_view.h (working copy)
@@ -34,7 +34,9 @@
public views::Combobox::Listener,
public SelectFileDialog::Listener {
public:
+ // Wifi login dialog for wifi network |wifi|
WifiConfigView(NetworkConfigView* parent, const WifiNetwork* wifi);
+ // Wifi login dialog for "Joining other network..."
explicit WifiConfigView(NetworkConfigView* parent);
virtual ~WifiConfigView();
@@ -68,20 +70,10 @@
// Get the typed in passphrase.
const std::string GetPassphrase() const;
- // Returns true if the textfields are non-empty and we can login.
- bool can_login() const { return can_login_; }
+ // Returns whether or not we can login.
+ bool CanLogin();
private:
- class SecurityComboboxModel : public ui::ComboboxModel {
- public:
- SecurityComboboxModel() {}
- virtual ~SecurityComboboxModel() {}
- virtual int GetItemCount();
- virtual string16 GetItemAt(int index);
- private:
- DISALLOW_COPY_AND_ASSIGN(SecurityComboboxModel);
- };
-
// Initializes UI.
void Init();
@@ -93,14 +85,16 @@
NetworkConfigView* parent_;
- // Whether or not we can log in. This gets recalculated when textfield
- // contents change.
- bool can_login_;
+ // Whether or not it is an 802.1x network.
+ bool is_8021x_;
scoped_ptr<WifiNetwork> wifi_;
views::Textfield* ssid_textfield_;
+ views::Combobox* eap_method_combobox_;
+ views::Combobox* phase_2_auth_combobox_;
views::Textfield* identity_textfield_;
+ views::Textfield* identity_anonymous_textfield_;
views::NativeButton* certificate_browse_button_;
scoped_refptr<SelectFileDialog> select_file_dialog_;
std::string certificate_path_;

Powered by Google App Engine
This is Rietveld 408576698