diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-23 21:55:52 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-23 21:55:52 +0000 |
commit | a8111ce7343d3d6458eff4a5f370cf611f6753b4 (patch) | |
tree | 30dfb0171c2e450f0271d3c787ac0cfbc06e663b /chrome/browser/views/bug_report_view.cc | |
parent | e48211e18675bec9056fb0762ec1c6644b0ff32e (diff) | |
download | chromium_src-a8111ce7343d3d6458eff4a5f370cf611f6753b4.zip chromium_src-a8111ce7343d3d6458eff4a5f370cf611f6753b4.tar.gz chromium_src-a8111ce7343d3d6458eff4a5f370cf611f6753b4.tar.bz2 |
The death knell for the old native buttons, checkboxes and radio buttons.
Replace with renamed NativeButton2, Checkbox2, RadioButton2.
Review URL: http://codereview.chromium.org/50083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12317 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/bug_report_view.cc')
-rw-r--r-- | chrome/browser/views/bug_report_view.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/views/bug_report_view.cc b/chrome/browser/views/bug_report_view.cc index 0256758..2ae5afa 100644 --- a/chrome/browser/views/bug_report_view.cc +++ b/chrome/browser/views/bug_report_view.cc @@ -167,12 +167,12 @@ void BugReportView::SetupControl() { new views::TextField(views::TextField::STYLE_MULTILINE); description_text_->SetHeightInLines(kDescriptionLines); - include_page_source_checkbox_ = new views::CheckBox( + include_page_source_checkbox_ = new views::Checkbox( l10n_util::GetString(IDS_BUGREPORT_INCLUDE_PAGE_SOURCE_CHKBOX)); - include_page_source_checkbox_->SetIsSelected(true); - include_page_image_checkbox_ = new views::CheckBox( + include_page_source_checkbox_->SetChecked(true); + include_page_image_checkbox_ = new views::Checkbox( l10n_util::GetString(IDS_BUGREPORT_INCLUDE_PAGE_IMAGE_CHKBOX)); - include_page_image_checkbox_->SetIsSelected(true); + include_page_image_checkbox_->SetChecked(true); // Arranges controls by using GridLayout. const int column_set_id = 0; @@ -249,9 +249,9 @@ void BugReportView::ItemChanged(views::ComboBox* combo_box, old_report_text_.clear(); } include_page_source_checkbox_->SetEnabled(!is_phishing_report); - include_page_source_checkbox_->SetIsSelected(!is_phishing_report); + include_page_source_checkbox_->SetChecked(!is_phishing_report); include_page_image_checkbox_->SetEnabled(!is_phishing_report); - include_page_image_checkbox_->SetIsSelected(!is_phishing_report); + include_page_image_checkbox_->SetChecked(!is_phishing_report); GetDialogClientView()->UpdateDialogButtons(); } @@ -448,7 +448,7 @@ void BugReportView::SendReport() { } // include the page image if we have one - if (include_page_image_checkbox_->IsSelected() && png_data_.get()) { + if (include_page_image_checkbox_->checked() && png_data_.get()) { post_body.append("--" + mime_boundary + "\r\n"); post_body.append("Content-Disposition: form-data; name=\"screenshot\"; " "filename=\"screenshot.png\"\r\n"); @@ -463,7 +463,7 @@ void BugReportView::SendReport() { } // TODO(awalker): include the page source if we can get it - if (include_page_source_checkbox_->IsSelected()) { + if (include_page_source_checkbox_->checked()) { } // terminate the body |