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

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

Issue 657653002: Move app list search box into AppListView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | ui/app_list/views/app_list_main_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_background.cc
diff --git a/ui/app_list/views/app_list_background.cc b/ui/app_list/views/app_list_background.cc
index 509d01a5accaf132d140a7c23b3445a3e1f73359..2167aba66221478accb4ad090bbbcc151e50a9bf 100644
--- a/ui/app_list/views/app_list_background.cc
+++ b/ui/app_list/views/app_list_background.cc
@@ -19,9 +19,6 @@
namespace {
-// Size of top separator between searchbox and grid view.
-const int kTopSeparatorSize = 1;
-
// Size of bottom separator between contents view and contents switcher.
const int kBottomSeparatorSize = 1;
@@ -53,26 +50,6 @@ void AppListBackground::Paint(gfx::Canvas* canvas,
paint.setStyle(SkPaint::kFill_Style);
int contents_top = bounds.y();
- views::View* search_box_view = main_view_->search_box_view();
- if (main_view_->visible() && search_box_view->visible() &&
- !app_list::switches::IsExperimentalAppListEnabled()) {
- const gfx::Rect search_box_view_bounds =
- search_box_view->ConvertRectToWidget(search_box_view->GetLocalBounds());
- gfx::Rect search_box_rect(bounds.x(),
- bounds.y(),
- bounds.width(),
- search_box_view_bounds.bottom() - bounds.y());
-
- paint.setColor(kSearchBoxBackground);
- canvas->DrawRect(search_box_rect, paint);
-
- gfx::Rect separator_rect(search_box_rect);
- separator_rect.set_y(separator_rect.bottom());
- separator_rect.set_height(kTopSeparatorSize);
- canvas->FillRect(separator_rect, kTopSeparatorColor);
- contents_top = separator_rect.bottom();
- }
-
gfx::Rect contents_rect(bounds.x(),
contents_top,
bounds.width(),
« no previous file with comments | « no previous file | ui/app_list/views/app_list_main_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698