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

Unified Diff: chrome/browser/ui/app_list/start_page_service.h

Issue 631913004: Open the launcher when hotword is triggered in always-on mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hotword-google-com-ntp
Patch Set: Fix android build 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
Index: chrome/browser/ui/app_list/start_page_service.h
diff --git a/chrome/browser/ui/app_list/start_page_service.h b/chrome/browser/ui/app_list/start_page_service.h
index 33db7b2e32c43f8808b3f414c45eeec6c87e1e09..4a2abb9ecc2f5b0f2183fbe39323827a4de7693c 100644
--- a/chrome/browser/ui/app_list/start_page_service.h
+++ b/chrome/browser/ui/app_list/start_page_service.h
@@ -8,6 +8,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
@@ -43,6 +44,9 @@ class StartPageService : public KeyedService {
void AppListHidden();
void ToggleSpeechRecognition();
+ // Called when the WebUI has finished loading.
+ void WebUILoaded();
+
// Returns true if the hotword is enabled in the app-launcher.
bool HotwordEnabled();
@@ -89,6 +93,9 @@ class StartPageService : public KeyedService {
bool speech_button_toggled_manually_;
bool speech_result_obtained_;
+ bool webui_finished_loading_;
+ std::vector<base::Closure> pending_webui_callbacks_;
+
DISALLOW_COPY_AND_ASSIGN(StartPageService);
};
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.cc ('k') | chrome/browser/ui/app_list/start_page_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698