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

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

Issue 2898743002: Draggable peeking/fullscreen launcher with transparent background. (Closed)
Patch Set: addressed msw@'s comments. Created 3 years, 6 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 13f77b987917e78440028f37be035eed83e4e976..e91b524090cd9148359fe5e7f2724f3def45edb8 100644
--- a/ui/app_list/views/app_list_main_view.cc
+++ b/ui/app_list/views/app_list_main_view.cc
@@ -43,11 +43,13 @@ namespace app_list {
////////////////////////////////////////////////////////////////////////////////
// AppListMainView:
-AppListMainView::AppListMainView(AppListViewDelegate* delegate)
+AppListMainView::AppListMainView(AppListViewDelegate* delegate,
+ AppListView* app_list_view)
: delegate_(delegate),
model_(delegate->GetModel()),
search_box_view_(nullptr),
- contents_view_(nullptr) {
+ contents_view_(nullptr),
+ app_list_view_(app_list_view) {
SetLayoutManager(
features::IsAnswerCardEnabled()
? static_cast<views::LayoutManager*>(new views::FillLayout)
@@ -76,8 +78,7 @@ void AppListMainView::Init(gfx::NativeView parent,
void AppListMainView::AddContentsViews() {
DCHECK(search_box_view_);
-
- contents_view_ = new ContentsView(this);
+ contents_view_ = new ContentsView(this, app_list_view_);
contents_view_->Init(model_);
AddChildView(contents_view_);

Powered by Google App Engine
This is Rietveld 408576698