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

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

Issue 29763004: Embeds offline voice recognizer plugin and its manager to app-list start page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove debug div but use console.log Created 7 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
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 09d056f92b9eb42f6542fef1b915c55c84726fe8..d40540f45982515cd91a9a60d18461a938bf6f6e 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 (apps_)
apps_->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) {

Powered by Google App Engine
This is Rietveld 408576698