| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/login/network_selection_view.h" | 5 #include "chrome/browser/chromeos/login/network_selection_view.h" |
| 6 | 6 |
| 7 #include <signal.h> | 7 #include <signal.h> |
| 8 #include <sys/types.h> | 8 #include <sys/types.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 const gfx::Font& base_font = rb.GetFont(ResourceBundle::BaseFont); | 336 const gfx::Font& base_font = rb.GetFont(ResourceBundle::BaseFont); |
| 337 | 337 |
| 338 SetMenuButtonFont(languages_menubutton_, base_font); | 338 SetMenuButtonFont(languages_menubutton_, base_font); |
| 339 languages_menubutton_->SetText( | 339 languages_menubutton_->SetText( |
| 340 UTF16ToWide(actor_->language_switch_menu()->GetCurrentLocaleName())); | 340 UTF16ToWide(actor_->language_switch_menu()->GetCurrentLocaleName())); |
| 341 SetMenuButtonFont(keyboards_menubutton_, base_font); | 341 SetMenuButtonFont(keyboards_menubutton_, base_font); |
| 342 keyboards_menubutton_->SetText( | 342 keyboards_menubutton_->SetText( |
| 343 UTF16ToWide(actor_->keyboard_switch_menu()->GetCurrentKeyboardName())); | 343 UTF16ToWide(actor_->keyboard_switch_menu()->GetCurrentKeyboardName())); |
| 344 welcome_label_->SetFont(welcome_label_font); | 344 welcome_label_->SetFont(welcome_label_font); |
| 345 welcome_label_->SetText( | 345 welcome_label_->SetText( |
| 346 UTF16ToWide(l10n_util::GetStringUTF16(IDS_NETWORK_SELECTION_TITLE))); | 346 l10n_util::GetStringUTF16(IDS_NETWORK_SELECTION_TITLE)); |
| 347 select_language_label_->SetFont(select_label_font); | 347 select_language_label_->SetFont(select_label_font); |
| 348 select_language_label_->SetText( | 348 select_language_label_->SetText( |
| 349 UTF16ToWide(l10n_util::GetStringUTF16(IDS_LANGUAGE_SELECTION_SELECT))); | 349 l10n_util::GetStringUTF16(IDS_LANGUAGE_SELECTION_SELECT)); |
| 350 languages_menubutton_->SetAccessibleName( | 350 languages_menubutton_->SetAccessibleName( |
| 351 l10n_util::GetStringUTF16(IDS_LANGUAGE_SELECTION_SELECT)); | 351 l10n_util::GetStringUTF16(IDS_LANGUAGE_SELECTION_SELECT)); |
| 352 select_keyboard_label_->SetFont(select_label_font); | 352 select_keyboard_label_->SetFont(select_label_font); |
| 353 select_keyboard_label_->SetText( | 353 select_keyboard_label_->SetText( |
| 354 UTF16ToWide(l10n_util::GetStringUTF16(IDS_KEYBOARD_SELECTION_SELECT))); | 354 l10n_util::GetStringUTF16(IDS_KEYBOARD_SELECTION_SELECT)); |
| 355 keyboards_menubutton_->SetAccessibleName( | 355 keyboards_menubutton_->SetAccessibleName( |
| 356 l10n_util::GetStringUTF16(IDS_KEYBOARD_SELECTION_SELECT)); | 356 l10n_util::GetStringUTF16(IDS_KEYBOARD_SELECTION_SELECT)); |
| 357 select_network_label_->SetFont(select_label_font); | 357 select_network_label_->SetFont(select_label_font); |
| 358 select_network_label_->SetText( | 358 select_network_label_->SetText( |
| 359 UTF16ToWide(l10n_util::GetStringUTF16(IDS_NETWORK_SELECTION_SELECT))); | 359 l10n_util::GetStringUTF16(IDS_NETWORK_SELECTION_SELECT)); |
| 360 SetMenuButtonFont(network_dropdown_, base_font); | 360 SetMenuButtonFont(network_dropdown_, base_font); |
| 361 network_dropdown_->SetAccessibleName( | 361 network_dropdown_->SetAccessibleName( |
| 362 l10n_util::GetStringUTF16(IDS_NETWORK_SELECTION_SELECT)); | 362 l10n_util::GetStringUTF16(IDS_NETWORK_SELECTION_SELECT)); |
| 363 proxy_settings_link_->SetFont(base_font); | 363 proxy_settings_link_->SetFont(base_font); |
| 364 proxy_settings_link_->SetText(UTF16ToWide( | 364 proxy_settings_link_->SetText( |
| 365 l10n_util::GetStringUTF16(IDS_OPTIONS_PROXIES_CONFIGURE_BUTTON))); | 365 l10n_util::GetStringUTF16(IDS_OPTIONS_PROXIES_CONFIGURE_BUTTON)); |
| 366 connecting_network_label_->SetFont(rb.GetFont(ResourceBundle::MediumFont)); | 366 connecting_network_label_->SetFont(rb.GetFont(ResourceBundle::MediumFont)); |
| 367 RecreateNativeControls(); | 367 RecreateNativeControls(); |
| 368 UpdateConnectingNetworkLabel(); | 368 UpdateConnectingNetworkLabel(); |
| 369 network_dropdown_->Refresh(); | 369 network_dropdown_->Refresh(); |
| 370 InitLayout(); | 370 InitLayout(); |
| 371 } | 371 } |
| 372 | 372 |
| 373 //////////////////////////////////////////////////////////////////////////////// | 373 //////////////////////////////////////////////////////////////////////////////// |
| 374 // views::View: implementation: | 374 // views::View: implementation: |
| 375 | 375 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 bool is_continue_enabled = IsContinueEnabled(); | 465 bool is_continue_enabled = IsContinueEnabled(); |
| 466 delete continue_button_; | 466 delete continue_button_; |
| 467 continue_button_ = new login::WideButton( | 467 continue_button_ = new login::WideButton( |
| 468 actor_, | 468 actor_, |
| 469 UTF16ToWide( | 469 UTF16ToWide( |
| 470 l10n_util::GetStringUTF16(IDS_NETWORK_SELECTION_CONTINUE_BUTTON))); | 470 l10n_util::GetStringUTF16(IDS_NETWORK_SELECTION_CONTINUE_BUTTON))); |
| 471 continue_button_->SetEnabled(is_continue_enabled); | 471 continue_button_->SetEnabled(is_continue_enabled); |
| 472 } | 472 } |
| 473 | 473 |
| 474 void NetworkSelectionView::UpdateConnectingNetworkLabel() { | 474 void NetworkSelectionView::UpdateConnectingNetworkLabel() { |
| 475 connecting_network_label_->SetText(UTF16ToWide(l10n_util::GetStringFUTF16( | 475 connecting_network_label_->SetText(l10n_util::GetStringFUTF16( |
| 476 IDS_NETWORK_SELECTION_CONNECTING, network_id_))); | 476 IDS_NETWORK_SELECTION_CONNECTING, network_id_)); |
| 477 } | 477 } |
| 478 | 478 |
| 479 } // namespace chromeos | 479 } // namespace chromeos |
| OLD | NEW |