| OLD | NEW |
| 1 // Copyright (c) 2012 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_VPN_CONFIG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/string16.h" | 12 #include "base/string16.h" |
| 12 #include "chrome/browser/chromeos/cros/cert_library.h" | 13 #include "chrome/browser/chromeos/cros/cert_library.h" |
| 13 #include "chrome/browser/chromeos/options/network_config_view.h" | 14 #include "chrome/browser/chromeos/options/network_config_view.h" |
| 14 #include "chrome/browser/chromeos/options/passphrase_textfield.h" | 15 #include "chrome/browser/chromeos/options/passphrase_textfield.h" |
| 15 #include "chrome/browser/ui/select_file_dialog.h" | 16 #include "chrome/browser/ui/select_file_dialog.h" |
| 16 #include "ui/views/controls/button/button.h" | 17 #include "ui/views/controls/button/button.h" |
| 17 #include "ui/views/controls/combobox/combobox_listener.h" | 18 #include "ui/views/controls/combobox/combobox_listener.h" |
| 18 #include "ui/views/controls/textfield/textfield_controller.h" | 19 #include "ui/views/controls/textfield/textfield_controller.h" |
| 19 #include "ui/views/view.h" | 20 #include "ui/views/view.h" |
| 20 | 21 |
| 21 namespace views { | 22 namespace views { |
| 22 class Label; | 23 class Label; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace chromeos { | 26 namespace chromeos { |
| 26 | 27 |
| 28 namespace internal { |
| 29 class ProviderTypeComboboxModel; |
| 30 class VpnServerCACertComboboxModel; |
| 31 class VpnUserCertComboboxModel; |
| 32 } |
| 33 |
| 27 // A dialog box to allow configuration of VPN connection. | 34 // A dialog box to allow configuration of VPN connection. |
| 28 class VPNConfigView : public ChildNetworkConfigView, | 35 class VPNConfigView : public ChildNetworkConfigView, |
| 29 public views::TextfieldController, | 36 public views::TextfieldController, |
| 30 public views::ButtonListener, | 37 public views::ButtonListener, |
| 31 public views::ComboboxListener, | 38 public views::ComboboxListener, |
| 32 public CertLibrary::Observer { | 39 public CertLibrary::Observer { |
| 33 public: | 40 public: |
| 34 VPNConfigView(NetworkConfigView* parent, VirtualNetwork* vpn); | 41 VPNConfigView(NetworkConfigView* parent, VirtualNetwork* vpn); |
| 35 explicit VPNConfigView(NetworkConfigView* parent); | 42 explicit VPNConfigView(NetworkConfigView* parent); |
| 36 virtual ~VPNConfigView(); | 43 virtual ~VPNConfigView(); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 NetworkPropertyUIData ca_cert_ui_data_; | 134 NetworkPropertyUIData ca_cert_ui_data_; |
| 128 NetworkPropertyUIData psk_passphrase_ui_data_; | 135 NetworkPropertyUIData psk_passphrase_ui_data_; |
| 129 NetworkPropertyUIData user_cert_ui_data_; | 136 NetworkPropertyUIData user_cert_ui_data_; |
| 130 NetworkPropertyUIData username_ui_data_; | 137 NetworkPropertyUIData username_ui_data_; |
| 131 NetworkPropertyUIData user_passphrase_ui_data_; | 138 NetworkPropertyUIData user_passphrase_ui_data_; |
| 132 NetworkPropertyUIData group_name_ui_data_; | 139 NetworkPropertyUIData group_name_ui_data_; |
| 133 | 140 |
| 134 views::Textfield* server_textfield_; | 141 views::Textfield* server_textfield_; |
| 135 views::Label* service_text_; | 142 views::Label* service_text_; |
| 136 views::Textfield* service_textfield_; | 143 views::Textfield* service_textfield_; |
| 144 scoped_ptr<internal::ProviderTypeComboboxModel> provider_type_combobox_model_; |
| 137 views::Combobox* provider_type_combobox_; | 145 views::Combobox* provider_type_combobox_; |
| 138 views::Label* provider_type_text_label_; | 146 views::Label* provider_type_text_label_; |
| 139 views::Label* psk_passphrase_label_; | 147 views::Label* psk_passphrase_label_; |
| 140 PassphraseTextfield* psk_passphrase_textfield_; | 148 PassphraseTextfield* psk_passphrase_textfield_; |
| 141 views::Label* user_cert_label_; | 149 views::Label* user_cert_label_; |
| 150 scoped_ptr<internal::VpnUserCertComboboxModel> user_cert_combobox_model_; |
| 142 views::Combobox* user_cert_combobox_; | 151 views::Combobox* user_cert_combobox_; |
| 143 views::Label* server_ca_cert_label_; | 152 views::Label* server_ca_cert_label_; |
| 153 scoped_ptr<internal::VpnServerCACertComboboxModel> |
| 154 server_ca_cert_combobox_model_; |
| 144 views::Combobox* server_ca_cert_combobox_; | 155 views::Combobox* server_ca_cert_combobox_; |
| 145 views::Textfield* username_textfield_; | 156 views::Textfield* username_textfield_; |
| 146 PassphraseTextfield* user_passphrase_textfield_; | 157 PassphraseTextfield* user_passphrase_textfield_; |
| 147 views::Label* otp_label_; | 158 views::Label* otp_label_; |
| 148 views::Textfield* otp_textfield_; | 159 views::Textfield* otp_textfield_; |
| 149 views::Label* group_name_label_; | 160 views::Label* group_name_label_; |
| 150 views::Textfield* group_name_textfield_; | 161 views::Textfield* group_name_textfield_; |
| 151 views::Label* error_label_; | 162 views::Label* error_label_; |
| 152 | 163 |
| 153 DISALLOW_COPY_AND_ASSIGN(VPNConfigView); | 164 DISALLOW_COPY_AND_ASSIGN(VPNConfigView); |
| 154 }; | 165 }; |
| 155 | 166 |
| 156 } // namespace chromeos | 167 } // namespace chromeos |
| 157 | 168 |
| 158 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ | 169 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ |
| OLD | NEW |