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

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

Issue 578223002: Experimental app list: Enforce a 24-pixel padding on the top and sides. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ares-folder-heading-line-width
Patch Set: Created 6 years, 3 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
Index: ui/app_list/views/app_list_main_view.cc
diff --git a/ui/app_list/views/app_list_main_view.cc b/ui/app_list/views/app_list_main_view.cc
index a5d94bcfab448daee3417e49e7485033e8264fd0..dae4a498e0f98e42fe4cd99a13541639b6940fd0 100644
--- a/ui/app_list/views/app_list_main_view.cc
+++ b/ui/app_list/views/app_list_main_view.cc
@@ -42,9 +42,6 @@ const int kPadding = 1;
// The maximum allowed time to wait for icon loading in milliseconds.
const int kMaxIconLoadingWaitTimeInMs = 50;
-// The padding around the search box in the experimental app list.
-const int kSearchBoxViewPadding = 23;
-
// A view that holds another view and takes its preferred size. This is used for
// wrapping the search box view so it still gets laid out while hidden. This is
// a separate class so it can notify the main view on search box visibility
@@ -125,10 +122,10 @@ AppListMainView::AppListMainView(AppListViewDelegate* delegate,
views::View* container = new SearchBoxContainerView(this, search_box_view_);
if (switches::IsExperimentalAppListEnabled()) {
container->SetBorder(
- views::Border::CreateEmptyBorder(kSearchBoxViewPadding,
- kSearchBoxViewPadding,
+ views::Border::CreateEmptyBorder(kExperimentalWindowPadding,
+ kExperimentalWindowPadding,
0,
- kSearchBoxViewPadding));
+ kExperimentalWindowPadding));
}
AddChildView(container);
AddContentsViews();

Powered by Google App Engine
This is Rietveld 408576698