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

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

Issue 103493005: Rename View::set_focusable and View::set_accessibility_focusable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a few missing files Created 7 years 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/wimax_config_view.h" 5 #include "chrome/browser/chromeos/options/wimax_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/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 passphrase_label_->SetEnabled(true); 262 passphrase_label_->SetEnabled(true);
263 passphrase_textfield_->SetEnabled(passphrase_ui_data_.IsEditable()); 263 passphrase_textfield_->SetEnabled(passphrase_ui_data_.IsEditable());
264 passphrase_textfield_->SetAccessibleName(passphrase_label_text); 264 passphrase_textfield_->SetAccessibleName(passphrase_label_text);
265 layout->AddView(passphrase_textfield_); 265 layout->AddView(passphrase_textfield_);
266 266
267 if (passphrase_ui_data_.IsManaged()) { 267 if (passphrase_ui_data_.IsManaged()) {
268 layout->AddView(new ControlledSettingIndicatorView(passphrase_ui_data_)); 268 layout->AddView(new ControlledSettingIndicatorView(passphrase_ui_data_));
269 } else { 269 } else {
270 // Password visible button. 270 // Password visible button.
271 passphrase_visible_button_ = new views::ToggleImageButton(this); 271 passphrase_visible_button_ = new views::ToggleImageButton(this);
272 passphrase_visible_button_->set_focusable(true); 272 passphrase_visible_button_->SetFocusable(true);
273 passphrase_visible_button_->SetTooltipText( 273 passphrase_visible_button_->SetTooltipText(
274 l10n_util::GetStringUTF16( 274 l10n_util::GetStringUTF16(
275 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_PASSPHRASE_SHOW)); 275 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_PASSPHRASE_SHOW));
276 passphrase_visible_button_->SetToggledTooltipText( 276 passphrase_visible_button_->SetToggledTooltipText(
277 l10n_util::GetStringUTF16( 277 l10n_util::GetStringUTF16(
278 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_PASSPHRASE_HIDE)); 278 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_PASSPHRASE_HIDE));
279 passphrase_visible_button_->SetImage( 279 passphrase_visible_button_->SetImage(
280 views::ImageButton::STATE_NORMAL, 280 views::ImageButton::STATE_NORMAL,
281 ResourceBundle::GetSharedInstance(). 281 ResourceBundle::GetSharedInstance().
282 GetImageSkiaNamed(IDR_NETWORK_SHOW_PASSWORD)); 282 GetImageSkiaNamed(IDR_NETWORK_SHOW_PASSWORD));
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 } 371 }
372 } 372 }
373 373
374 void WimaxConfigView::InitFocus() { 374 void WimaxConfigView::InitFocus() {
375 views::View* view_to_focus = GetInitiallyFocusedView(); 375 views::View* view_to_focus = GetInitiallyFocusedView();
376 if (view_to_focus) 376 if (view_to_focus)
377 view_to_focus->RequestFocus(); 377 view_to_focus->RequestFocus();
378 } 378 }
379 379
380 } // namespace chromeos 380 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698