Commit 7f698b0a authored by Min Chen's avatar Min Chen Committed by Commit Bot

Delete obsolete functions in TrayPopupUtils.

Delete ShowStickyHeaderSeparator and CreateListSubHeaderSeparator in
TrayPopupUtils. Both of them have definitions in DetailedViewDelegate
after introduced the unified system tray.

Bug: 982950
Change-Id: Ia80c1e1e0e81eabb26fc6a93cd12dcf79e3789ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1696529Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
Commit-Queue: Min Chen <minch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#676509}
parent 2692851f
......@@ -221,21 +221,6 @@ void TrayPopupUtils::ConfigureAsStickyHeader(views::View* view) {
view->layer()->SetFillsBoundsOpaquely(false);
}
void TrayPopupUtils::ShowStickyHeaderSeparator(views::View* view,
bool show_separator) {
if (show_separator) {
view->SetBorder(views::CreatePaddedBorder(
views::CreateSolidSidedBorder(0, 0, kTraySeparatorWidth, 0,
kMenuSeparatorColor),
gfx::Insets(kMenuSeparatorVerticalPadding, 0,
kMenuSeparatorVerticalPadding - kTraySeparatorWidth, 0)));
} else {
view->SetBorder(views::CreateEmptyBorder(
gfx::Insets(kMenuSeparatorVerticalPadding, 0)));
}
view->SchedulePaint();
}
void TrayPopupUtils::ConfigureContainer(TriView::Container container,
views::View* container_view) {
container_view->SetLayoutManager(CreateDefaultLayoutManager(container));
......@@ -348,14 +333,6 @@ views::Separator* TrayPopupUtils::CreateListItemSeparator(bool left_inset) {
return separator;
}
views::Separator* TrayPopupUtils::CreateListSubHeaderSeparator() {
views::Separator* separator = new views::Separator();
separator->SetColor(kMenuSeparatorColor);
separator->SetBorder(views::CreateEmptyBorder(
kMenuSeparatorVerticalPadding - views::Separator::kThickness, 0, 0, 0));
return separator;
}
bool TrayPopupUtils::CanOpenWebUISettings() {
return Shell::Get()->session_controller()->ShouldEnableSettings();
}
......
......@@ -125,9 +125,6 @@ class TrayPopupUtils {
// Sets up |view| to be a sticky header in a tray detail scroll view.
static void ConfigureAsStickyHeader(views::View* view);
// Configures a |view| to have a visible separator below.
static void ShowStickyHeaderSeparator(views::View* view, bool show_separator);
// Configures |container_view| just like CreateDefaultRowView() would
// configure |container| on its returned TriView. To be used when mutliple
// targetable areas are required within a single row.
......@@ -188,11 +185,6 @@ class TrayPopupUtils {
// ownership of the returned separator.
static views::Separator* CreateListItemSeparator(bool left_inset);
// Creates and returns a horizontal separator line to be drawn between rows
// in a detailed view above the sub-header rows. Caller assumes ownership of
// the returned separator.
static views::Separator* CreateListSubHeaderSeparator();
// Returns true if it is possible to open WebUI settings in a browser window,
// i.e. the user is logged in, not on the lock screen, not adding a secondary
// user, and not in the supervised user creation flow.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment