OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_WIFI_CONFIG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_WIFI_CONFIG_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_WIFI_CONFIG_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_WIFI_CONFIG_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 // Returns true if the EAP method requires a user certificate. | 89 // Returns true if the EAP method requires a user certificate. |
90 bool UserCertRequired() const; | 90 bool UserCertRequired() const; |
91 | 91 |
92 // Returns true if at least one user certificate is installed. | 92 // Returns true if at least one user certificate is installed. |
93 bool HaveUserCerts() const; | 93 bool HaveUserCerts() const; |
94 | 94 |
95 // Returns true if there is a selected user certificate and it is valid. | 95 // Returns true if there is a selected user certificate and it is valid. |
96 bool IsUserCertValid() const; | 96 bool IsUserCertValid() const; |
97 | 97 |
| 98 // Returns true if the phase 2 auth is relevant. |
| 99 bool Phase2AuthActive() const; |
| 100 |
| 101 // Returns whether the current configuration requires a passphrase. |
| 102 bool PassphraseActive() const; |
| 103 |
| 104 // Returns true if a user cert should be selected. |
| 105 bool UserCertActive() const; |
| 106 |
| 107 // Returns true if a CA cert selection should be allowed. |
| 108 bool CaCertActive() const; |
| 109 |
98 // Updates state of the Login button. | 110 // Updates state of the Login button. |
99 void UpdateDialogButtons(); | 111 void UpdateDialogButtons(); |
100 | 112 |
101 // Enable/Disable EAP fields as appropriate based on selected EAP method. | 113 // Enable/Disable EAP fields as appropriate based on selected EAP method. |
102 void RefreshEapFields(); | 114 void RefreshEapFields(); |
103 | 115 |
104 // Enable/Disable "share this network" checkbox. | 116 // Enable/Disable "share this network" checkbox. |
105 void RefreshShareCheckbox(); | 117 void RefreshShareCheckbox(); |
106 | 118 |
107 // Updates the error text label. | 119 // Updates the error text label. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 views::Textfield* passphrase_textfield_; | 162 views::Textfield* passphrase_textfield_; |
151 views::ToggleImageButton* passphrase_visible_button_; | 163 views::ToggleImageButton* passphrase_visible_button_; |
152 views::Label* error_label_; | 164 views::Label* error_label_; |
153 | 165 |
154 DISALLOW_COPY_AND_ASSIGN(WifiConfigView); | 166 DISALLOW_COPY_AND_ASSIGN(WifiConfigView); |
155 }; | 167 }; |
156 | 168 |
157 } // namespace chromeos | 169 } // namespace chromeos |
158 | 170 |
159 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_WIFI_CONFIG_VIEW_H_ | 171 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_WIFI_CONFIG_VIEW_H_ |
OLD | NEW |