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

Unified Diff: chrome/browser/views/shelf_item_dialog.cc

Issue 115825: Move text_field.cc and rename the class to Textfield in preparation for porti... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/shelf_item_dialog.h ('k') | views/controls/message_box_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/shelf_item_dialog.cc
===================================================================
--- chrome/browser/views/shelf_item_dialog.cc (revision 17006)
+++ chrome/browser/views/shelf_item_dialog.cc (working copy)
@@ -21,7 +21,7 @@
#include "net/base/net_util.h"
#include "views/background.h"
#include "views/controls/label.h"
-#include "views/controls/text_field.h"
+#include "views/controls/textfield/textfield.h"
#include "views/focus/focus_manager.h"
#include "views/grid_layout.h"
#include "views/standard_layout.h"
@@ -304,7 +304,7 @@
title_label->SetText(l10n_util::GetString(IDS_ASI_TITLE_LABEL));
layout->AddView(title_label);
- title_field_ = new views::TextField();
+ title_field_ = new views::Textfield();
title_field_->SetController(this);
layout->AddView(title_field_);
@@ -319,7 +319,7 @@
url_label->SetText(l10n_util::GetString(IDS_ASI_URL));
layout->AddView(url_label);
- url_field_ = new views::TextField();
+ url_field_ = new views::Textfield();
url_field_->SetController(this);
layout->AddView(url_field_);
@@ -397,7 +397,7 @@
s = l10n_util::GetString(IDS_ASI_DEFAULT_TITLE);
if (title_field_) {
- // expected_title_handle_ is reset if the title textfield is edited so we
+ // expected_title_handle_ is reset if the title Textfield is edited so we
// can safely set the value.
title_field_->SetText(s);
title_field_->SelectAll();
@@ -417,7 +417,7 @@
NewCallback(this, &ShelfItemDialog::OnURLInfoAvailable));
}
-void ShelfItemDialog::ContentsChanged(views::TextField* sender,
+void ShelfItemDialog::ContentsChanged(views::Textfield* sender,
const std::wstring& new_contents) {
// If the user has edited the title field we no longer want to autofill it
// so we reset the expected handle to an impossible value.
« no previous file with comments | « chrome/browser/views/shelf_item_dialog.h ('k') | views/controls/message_box_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698