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

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

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
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/wifi_config_view.h" 5 #include "chrome/browser/chromeos/options/wifi_config_view.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/chromeos/cros/cros_library.h" 10 #include "chrome/browser/chromeos/cros/cros_library.h"
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 bool WifiConfigView::HandleKeyEvent(views::Textfield* sender, 611 bool WifiConfigView::HandleKeyEvent(views::Textfield* sender,
612 const ui::KeyEvent& key_event) { 612 const ui::KeyEvent& key_event) {
613 if (sender == passphrase_textfield_ && 613 if (sender == passphrase_textfield_ &&
614 key_event.key_code() == ui::VKEY_RETURN) { 614 key_event.key_code() == ui::VKEY_RETURN) {
615 parent_->GetDialogClientView()->AcceptWindow(); 615 parent_->GetDialogClientView()->AcceptWindow();
616 } 616 }
617 return false; 617 return false;
618 } 618 }
619 619
620 void WifiConfigView::ButtonPressed(views::Button* sender, 620 void WifiConfigView::ButtonPressed(views::Button* sender,
621 const views::Event& event) { 621 const ui::Event& event) {
622 if (sender == passphrase_visible_button_) { 622 if (sender == passphrase_visible_button_) {
623 if (passphrase_textfield_) { 623 if (passphrase_textfield_) {
624 passphrase_textfield_->SetObscured(!passphrase_textfield_->IsObscured()); 624 passphrase_textfield_->SetObscured(!passphrase_textfield_->IsObscured());
625 passphrase_visible_button_->SetToggled( 625 passphrase_visible_button_->SetToggled(
626 !passphrase_textfield_->IsObscured()); 626 !passphrase_textfield_->IsObscured());
627 } 627 }
628 } else { 628 } else {
629 NOTREACHED(); 629 NOTREACHED();
630 } 630 }
631 } 631 }
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
1262 void WifiConfigView::ParseWiFiEAPUIProperty( 1262 void WifiConfigView::ParseWiFiEAPUIProperty(
1263 NetworkPropertyUIData* property_ui_data, 1263 NetworkPropertyUIData* property_ui_data,
1264 Network* network, 1264 Network* network,
1265 const std::string& key) { 1265 const std::string& key) {
1266 ParseWiFiUIProperty( 1266 ParseWiFiUIProperty(
1267 property_ui_data, network, 1267 property_ui_data, network,
1268 base::StringPrintf("%s.%s", onc::wifi::kEAP, key.c_str())); 1268 base::StringPrintf("%s.%s", onc::wifi::kEAP, key.c_str()));
1269 } 1269 }
1270 1270
1271 } // namespace chromeos 1271 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/options/wifi_config_view.h ('k') | chrome/browser/chromeos/options/wimax_config_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698