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

Unified Diff: ui/app_list/views/folder_header_view.cc

Issue 2480813003: Reduce views::Border creation verbosity by promoting factory functions (Closed)
Patch Set: fix bad merge Created 4 years, 1 month 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 | « ui/app_list/views/apps_grid_view.cc ('k') | ui/app_list/views/search_box_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/folder_header_view.cc
diff --git a/ui/app_list/views/folder_header_view.cc b/ui/app_list/views/folder_header_view.cc
index 7fd811b6558baf3124495c0887e02001a91bbbac..c1488249d2bc17a2815937ac989d3e0b445ecf74 100644
--- a/ui/app_list/views/folder_header_view.cc
+++ b/ui/app_list/views/folder_header_view.cc
@@ -36,7 +36,7 @@ const int kMaxFolderNameWidth = 300;
class FolderHeaderView::FolderNameView : public views::Textfield {
public:
FolderNameView() {
- SetBorder(views::Border::CreateEmptyBorder(1, 1, 1, 1));
+ SetBorder(views::CreateEmptyBorder(1, 1, 1, 1));
SetTextColor(kFolderTitleColor);
}
@@ -59,7 +59,7 @@ FolderHeaderView::FolderHeaderView(FolderHeaderViewDelegate* delegate)
rb.GetFontList(ui::ResourceBundle::MediumFont));
folder_name_view_->set_placeholder_text_color(kFolderTitleHintTextColor);
folder_name_view_->set_placeholder_text(folder_name_placeholder_text_);
- folder_name_view_->SetBorder(views::Border::NullBorder());
+ folder_name_view_->SetBorder(views::NullBorder());
folder_name_view_->SetBackgroundColor(kContentsBackgroundColor);
folder_name_view_->set_controller(this);
AddChildView(folder_name_view_);
« no previous file with comments | « ui/app_list/views/apps_grid_view.cc ('k') | ui/app_list/views/search_box_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698