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

Unified Diff: chrome/browser/views/bookmark_manager_view.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/bookmark_manager_view.h ('k') | chrome/browser/views/bug_report_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/bookmark_manager_view.cc
===================================================================
--- chrome/browser/views/bookmark_manager_view.cc (revision 17006)
+++ chrome/browser/views/bookmark_manager_view.cc (working copy)
@@ -147,7 +147,7 @@
table_view_(NULL),
tree_view_(NULL),
ALLOW_THIS_IN_INITIALIZER_LIST(search_factory_(this)) {
- search_tf_ = new views::TextField();
+ search_tf_ = new views::Textfield();
search_tf_->set_default_width_in_chars(30);
table_view_ = new BookmarkTableView(profile_, NULL);
@@ -480,7 +480,7 @@
LoadedImpl();
}
-void BookmarkManagerView::ContentsChanged(views::TextField* sender,
+void BookmarkManagerView::ContentsChanged(views::Textfield* sender,
const std::wstring& new_contents) {
search_factory_.RevokeAll();
MessageLoop::current()->PostDelayedTask(FROM_HERE,
@@ -489,9 +489,9 @@
}
bool BookmarkManagerView::HandleKeystroke(
- views::TextField* sender,
- const views::TextField::Keystroke& key) {
- if (views::TextField::IsKeystrokeEnter(key)) {
+ views::Textfield* sender,
+ const views::Textfield::Keystroke& key) {
+ if (views::Textfield::IsKeystrokeEnter(key)) {
PerformSearch();
search_tf_->SelectAll();
}
« no previous file with comments | « chrome/browser/views/bookmark_manager_view.h ('k') | chrome/browser/views/bug_report_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698