diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-28 20:54:06 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-28 20:54:06 +0000 |
commit | 9163266850ce5d2c871afbd362940a2d04246e23 (patch) | |
tree | 31fdefc8be174c686bb02539ba2672be844fbaed /chrome/browser/views/bug_report_view.cc | |
parent | b7f02c6a9cb5cb58af781761b34895f40d35ddf1 (diff) | |
download | chromium_src-9163266850ce5d2c871afbd362940a2d04246e23.zip chromium_src-9163266850ce5d2c871afbd362940a2d04246e23.tar.gz chromium_src-9163266850ce5d2c871afbd362940a2d04246e23.tar.bz2 |
Make Textfield more portable.
Split off Windows bits into NativeTextfieldWin class obscured behind NativeTextfieldWrapper interface.
The APIs aren't perfectly tidy yet but this is a good first pass.
BUG=none
TEST=make sure you can still edit text fields, run the view unit tests.
Review URL: http://codereview.chromium.org/113940
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17112 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 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/views/bug_report_view.cc b/chrome/browser/views/bug_report_view.cc index b6eb9d3..ac223b6 100644 --- a/chrome/browser/views/bug_report_view.cc +++ b/chrome/browser/views/bug_report_view.cc @@ -284,7 +284,7 @@ void BugReportView::ItemChanged(views::ComboBox* combo_box, description_text_->SetEnabled(!is_phishing_report); description_text_->SetReadOnly(is_phishing_report); if (is_phishing_report) { - old_report_text_ = description_text_->GetText(); + old_report_text_ = description_text_->text(); description_text_->SetText(std::wstring()); } else if (!old_report_text_.empty()) { description_text_->SetText(old_report_text_); @@ -438,7 +438,7 @@ void BugReportView::SendReport() { "name=\"url\"\r\n\r\n"); // convert URL to UTF8 - std::string report_url = WideToUTF8(page_url_text_->GetText()); + std::string report_url = WideToUTF8(page_url_text_->text()); if (report_url.empty()) { post_body.append("n/a\r\n"); } else { @@ -479,7 +479,7 @@ void BugReportView::SendReport() { post_body.append("Content-Disposition: form-data; " "name=\"description\"\r\n\r\n"); - std::string description = WideToUTF8(description_text_->GetText()); + std::string description = WideToUTF8(description_text_->text()); if (description.empty()) { post_body.append("n/a\r\n"); } else { @@ -522,7 +522,7 @@ void BugReportView::SendReport() { void BugReportView::ReportPhishing() { tab_->controller().LoadURL( safe_browsing_util::GeneratePhishingReportUrl( - kReportPhishingUrl, WideToUTF8(page_url_text_->GetText())), + kReportPhishingUrl, WideToUTF8(page_url_text_->text())), GURL(), PageTransition::LINK); } |