| 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 #include "chrome/browser/chromeos/options/vpn_config_view.h" | 5 #include "chrome/browser/chromeos/options/vpn_config_view.h" |
| 6 | 6 |
| 7 #include "ash/system/chromeos/network/network_connect.h" | 7 #include "ash/system/chromeos/network/network_connect.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 key_event.key_code() == ui::VKEY_RETURN) { | 336 key_event.key_code() == ui::VKEY_RETURN) { |
| 337 parent_->GetDialogClientView()->AcceptWindow(); | 337 parent_->GetDialogClientView()->AcceptWindow(); |
| 338 } | 338 } |
| 339 return false; | 339 return false; |
| 340 } | 340 } |
| 341 | 341 |
| 342 void VPNConfigView::ButtonPressed(views::Button* sender, | 342 void VPNConfigView::ButtonPressed(views::Button* sender, |
| 343 const ui::Event& event) { | 343 const ui::Event& event) { |
| 344 } | 344 } |
| 345 | 345 |
| 346 void VPNConfigView::OnSelectedIndexChanged(views::Combobox* combobox) { | 346 void VPNConfigView::OnPerformAction(views::Combobox* combobox) { |
| 347 UpdateControls(); | 347 UpdateControls(); |
| 348 UpdateErrorLabel(); | 348 UpdateErrorLabel(); |
| 349 UpdateCanLogin(); | 349 UpdateCanLogin(); |
| 350 } | 350 } |
| 351 | 351 |
| 352 void VPNConfigView::OnCertificatesLoaded(bool initial_load) { | 352 void VPNConfigView::OnCertificatesLoaded(bool initial_load) { |
| 353 Refresh(); | 353 Refresh(); |
| 354 } | 354 } |
| 355 | 355 |
| 356 bool VPNConfigView::Login() { | 356 bool VPNConfigView::Login() { |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 property_ui_data->ParseOncProperty( | 1053 property_ui_data->ParseOncProperty( |
| 1054 onc_source, | 1054 onc_source, |
| 1055 onc, | 1055 onc, |
| 1056 base::StringPrintf("%s.%s.%s", | 1056 base::StringPrintf("%s.%s.%s", |
| 1057 ::onc::network_config::kVPN, | 1057 ::onc::network_config::kVPN, |
| 1058 dict_key.c_str(), | 1058 dict_key.c_str(), |
| 1059 key.c_str())); | 1059 key.c_str())); |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 } // namespace chromeos | 1062 } // namespace chromeos |
| OLD | NEW |