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/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: fix 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
« no previous file with comments | « chrome/browser/ui/webui/app_list/start_page_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « chrome/browser/ui/webui/app_list/start_page_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698