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

Unified Diff: chrome/browser/search/hotword_client.h

Issue 267653005: Adds HotwordPrivate API for integrating the hotword feature to AppLauncher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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/search/hotword_client.h
diff --git a/chrome/browser/search/hotword_client.h b/chrome/browser/search/hotword_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..8862b90d5bbd9cd7c5b16299e0561b74903fb2b2
--- /dev/null
+++ b/chrome/browser/search/hotword_client.h
@@ -0,0 +1,19 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_
+#define CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_
+
+class HotwordClient {
+ public:
+ virtual ~HotwordClient() {}
+
+ // Called when the hotword recognition session state has been changed.
+ virtual void OnHotwordStateChanged(bool started) {}
+
+ // Called when the hotword is recognized.
+ virtual void OnHotwordRecognized() = 0;
+};
+
+#endif // CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_
« no previous file with comments | « chrome/browser/extensions/api/hotword_private/hotword_private_apitest.cc ('k') | chrome/browser/search/hotword_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698