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

Unified Diff: ui/views/controls/tabbed_pane/tabbed_pane.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/views/controls/styled_label_unittest.cc ('k') | ui/views/corewm/tooltip_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/tabbed_pane/tabbed_pane.cc
diff --git a/ui/views/controls/tabbed_pane/tabbed_pane.cc b/ui/views/controls/tabbed_pane/tabbed_pane.cc
index e28a995fbf8921dc9b537ffc2496262772c25a45..7f42152d1660adba0d232555e22f20484c6d0b9c 100644
--- a/ui/views/controls/tabbed_pane/tabbed_pane.cc
+++ b/ui/views/controls/tabbed_pane/tabbed_pane.cc
@@ -147,7 +147,7 @@ Tab::Tab(TabbedPane* tabbed_pane, const base::string16& title, View* contents)
const int kTabVerticalPadding = 5;
const int kTabHorizontalPadding = 10;
- SetBorder(Border::CreateEmptyBorder(
+ SetBorder(CreateEmptyBorder(
gfx::Insets(kTabVerticalPadding, kTabHorizontalPadding)));
SetLayoutManager(new FillLayout);
@@ -267,7 +267,7 @@ MdTab::MdTab(TabbedPane* tabbed_pane,
View* contents)
: Tab(tabbed_pane, title, contents) {
const int kBorderThickness = 2;
- SetBorder(Border::CreateEmptyBorder(gfx::Insets(kBorderThickness)));
+ SetBorder(CreateEmptyBorder(gfx::Insets(kBorderThickness)));
OnStateChanged();
}
@@ -297,7 +297,7 @@ gfx::Size MdTab::GetPreferredSize() const {
}
void MdTab::OnFocus() {
- SetBorder(Border::CreateSolidBorder(
+ SetBorder(CreateSolidBorder(
GetInsets().top(),
SkColorSetA(GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_FocusedBorderColor),
@@ -306,7 +306,7 @@ void MdTab::OnFocus() {
}
void MdTab::OnBlur() {
- SetBorder(Border::CreateEmptyBorder(GetInsets()));
+ SetBorder(CreateEmptyBorder(GetInsets()));
SchedulePaint();
}
« no previous file with comments | « ui/views/controls/styled_label_unittest.cc ('k') | ui/views/corewm/tooltip_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698