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

Side by Side Diff: chrome/browser/chromeos/options/vpn_config_view.cc

Issue 141523005: Combobox: Rename styles to STYLE_NORMAL and STYLE_ACTION and modify behaviors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fix for Windows Created 6 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/options/vpn_config_view.h ('k') | chrome/browser/chromeos/options/wifi_config_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698