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

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

Issue 809603003: Plumb preamble log data from the hotword extension into the speech recognizer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build. Created 6 years 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/app_list_view_delegate.h
diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.h b/chrome/browser/ui/app_list/app_list_view_delegate.h
index 1db31eaf8cca495e49b1dd53f827abe3501bba5f..ecd7ed2ae374ff16f62f2a79c99b3c5cb9068cca 100644
--- a/chrome/browser/ui/app_list/app_list_view_delegate.h
+++ b/chrome/browser/ui/app_list/app_list_view_delegate.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/callback_forward.h"
#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/observer_list.h"
@@ -41,6 +42,10 @@ namespace base {
class FilePath;
}
+namespace content {
+struct SpeechRecognitionSessionPreamble;
+}
+
namespace gfx {
class ImageSkia;
}
@@ -66,6 +71,11 @@ class AppListViewDelegate : public app_list::AppListViewDelegate,
void SetProfile(Profile* profile);
Profile* profile() { return profile_; }
+ // Invoked to toggle the status of speech recognition based on a hotword
+ // trigger.
+ void ToggleSpeechRecognitionForHotword(
+ const scoped_refptr<content::SpeechRecognitionSessionPreamble>& preamble);
+
// Overridden from app_list::AppListViewDelegate:
bool ForceNativeDesktop() const override;
void SetProfileByPath(const base::FilePath& profile_path) override;
@@ -124,7 +134,9 @@ class AppListViewDelegate : public app_list::AppListViewDelegate,
// Overridden from HotwordClient:
void OnHotwordStateChanged(bool started) override;
- void OnHotwordRecognized() override;
+ void OnHotwordRecognized(
+ const scoped_refptr<content::SpeechRecognitionSessionPreamble>& preamble)
+ override;
// Overridden from SigninManagerFactory::Observer:
void SigninManagerCreated(SigninManagerBase* manager) override;
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_impl.cc ('k') | chrome/browser/ui/app_list/app_list_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698