| Index: ui/app_list/views/apps_grid_view.cc
|
| diff --git a/ui/app_list/views/apps_grid_view.cc b/ui/app_list/views/apps_grid_view.cc
|
| index d8f92c305ada4b7812851763baae3357477a32f2..6a1a9f64721702158cefefd3334edd3ec29e8e24 100644
|
| --- a/ui/app_list/views/apps_grid_view.cc
|
| +++ b/ui/app_list/views/apps_grid_view.cc
|
| @@ -258,6 +258,8 @@ AppsGridView::AppsGridView(AppsGridViewDelegate* delegate,
|
| new views::WebView(start_page_contents->GetBrowserContext());
|
| start_page_view_->SetWebContents(start_page_contents);
|
| AddChildView(start_page_view_);
|
| + start_page_contents->GetWebUI()->CallJavascriptFunction(
|
| + "appList.startPage.onAppListShown");
|
| }
|
| }
|
|
|
| @@ -275,6 +277,11 @@ AppsGridView::~AppsGridView() {
|
|
|
| if (item_list_)
|
| item_list_->RemoveObserver(this);
|
| +
|
| + if (start_page_view_) {
|
| + start_page_view_->GetWebContents()->GetWebUI()->CallJavascriptFunction(
|
| + "appList.startPage.onAppListHidden");
|
| + }
|
| }
|
|
|
| void AppsGridView::SetLayout(int icon_size, int cols, int rows_per_page) {
|
|
|