| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "chrome/browser/chromeos/cros/cert_library.h" | 15 #include "chrome/browser/chromeos/cros/cert_library.h" |
| 16 #include "chrome/browser/chromeos/options/network_config_view.h" | 16 #include "chrome/browser/chromeos/options/network_config_view.h" |
| 17 #include "ui/base/models/combobox_model.h" | 17 #include "ui/base/models/combobox_model.h" |
| 18 #include "ui/views/controls/button/button.h" | 18 #include "ui/views/controls/button/button.h" |
| 19 #include "ui/views/controls/combobox/combobox_listener.h" | 19 #include "ui/views/controls/combobox/combobox_listener.h" |
| 20 #include "ui/views/controls/textfield/textfield_controller.h" | 20 #include "ui/views/controls/textfield/textfield_controller.h" |
| 21 #include "views/view.h" | 21 #include "views/view.h" |
| 22 | 22 |
| 23 namespace views { | 23 namespace views { |
| 24 class Checkbox; | 24 class Checkbox; |
| 25 class Label; |
| 25 class ToggleImageButton; | 26 class ToggleImageButton; |
| 26 class Label; | |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace chromeos { | 29 namespace chromeos { |
| 30 | 30 |
| 31 // A dialog box for showing a password textfield. | 31 // A dialog box for showing a password textfield. |
| 32 class WifiConfigView : public ChildNetworkConfigView, | 32 class WifiConfigView : public ChildNetworkConfigView, |
| 33 public views::TextfieldController, | 33 public views::TextfieldController, |
| 34 public views::ButtonListener, | 34 public views::ButtonListener, |
| 35 public views::ComboboxListener, | 35 public views::ComboboxListener, |
| 36 public CertLibrary::Observer { | 36 public CertLibrary::Observer { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 void RefreshEapFields(); | 102 void RefreshEapFields(); |
| 103 | 103 |
| 104 // Enable/Disable "share this network" checkbox. | 104 // Enable/Disable "share this network" checkbox. |
| 105 void RefreshShareCheckbox(); | 105 void RefreshShareCheckbox(); |
| 106 | 106 |
| 107 // Updates the error text label. | 107 // Updates the error text label. |
| 108 void UpdateErrorLabel(); | 108 void UpdateErrorLabel(); |
| 109 | 109 |
| 110 CertLibrary* cert_library_; | 110 CertLibrary* cert_library_; |
| 111 | 111 |
| 112 NetworkPropertyUIData eap_method_ui_data_; |
| 113 NetworkPropertyUIData phase_2_auth_ui_data_; |
| 114 NetworkPropertyUIData user_cert_ui_data_; |
| 115 NetworkPropertyUIData server_ca_cert_ui_data_; |
| 116 NetworkPropertyUIData identity_ui_data_; |
| 117 NetworkPropertyUIData identity_anonymous_ui_data_; |
| 118 NetworkPropertyUIData save_credentials_ui_data_; |
| 119 NetworkPropertyUIData passphrase_ui_data_; |
| 120 |
| 112 views::Textfield* ssid_textfield_; | 121 views::Textfield* ssid_textfield_; |
| 113 views::Combobox* eap_method_combobox_; | 122 views::Combobox* eap_method_combobox_; |
| 114 views::Label* phase_2_auth_label_; | 123 views::Label* phase_2_auth_label_; |
| 115 views::Combobox* phase_2_auth_combobox_; | 124 views::Combobox* phase_2_auth_combobox_; |
| 116 views::Label* user_cert_label_; | 125 views::Label* user_cert_label_; |
| 117 views::Combobox* user_cert_combobox_; | 126 views::Combobox* user_cert_combobox_; |
| 118 views::Label* server_ca_cert_label_; | 127 views::Label* server_ca_cert_label_; |
| 119 views::Combobox* server_ca_cert_combobox_; | 128 views::Combobox* server_ca_cert_combobox_; |
| 120 views::Label* identity_label_; | 129 views::Label* identity_label_; |
| 121 views::Textfield* identity_textfield_; | 130 views::Textfield* identity_textfield_; |
| 122 views::Label* identity_anonymous_label_; | 131 views::Label* identity_anonymous_label_; |
| 123 views::Textfield* identity_anonymous_textfield_; | 132 views::Textfield* identity_anonymous_textfield_; |
| 124 views::Checkbox* save_credentials_checkbox_; | 133 views::Checkbox* save_credentials_checkbox_; |
| 125 views::Checkbox* share_network_checkbox_; | 134 views::Checkbox* share_network_checkbox_; |
| 126 views::Label* shared_network_label_; | 135 views::Label* shared_network_label_; |
| 127 views::Combobox* security_combobox_; | 136 views::Combobox* security_combobox_; |
| 128 views::Label* passphrase_label_; | 137 views::Label* passphrase_label_; |
| 129 views::Textfield* passphrase_textfield_; | 138 views::Textfield* passphrase_textfield_; |
| 130 views::ToggleImageButton* passphrase_visible_button_; | 139 views::ToggleImageButton* passphrase_visible_button_; |
| 131 views::Label* error_label_; | 140 views::Label* error_label_; |
| 132 | 141 |
| 133 DISALLOW_COPY_AND_ASSIGN(WifiConfigView); | 142 DISALLOW_COPY_AND_ASSIGN(WifiConfigView); |
| 134 }; | 143 }; |
| 135 | 144 |
| 136 } // namespace chromeos | 145 } // namespace chromeos |
| 137 | 146 |
| 138 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_WIFI_CONFIG_VIEW_H_ | 147 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_WIFI_CONFIG_VIEW_H_ |
| OLD | NEW |