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

Unified Diff: chrome/browser/extensions/api/hotword_private/hotword_private_api.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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/hotword_private/hotword_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/hotword_private/hotword_private_api.h
diff --git a/chrome/browser/extensions/api/hotword_private/hotword_private_api.h b/chrome/browser/extensions/api/hotword_private/hotword_private_api.h
index bd0750160924e07257f61c3da9f13f696713303c..0a409f43449232fe79e0c7be136218242c24529d 100644
--- a/chrome/browser/extensions/api/hotword_private/hotword_private_api.h
+++ b/chrome/browser/extensions/api/hotword_private/hotword_private_api.h
@@ -30,10 +30,14 @@ class HotwordPrivateEventService : public BrowserContextKeyedAPI {
void OnEnabledChanged(const std::string& pref_name);
+ void OnHotwordSessionRequested();
+
+ void OnHotwordSessionStopped();
+
private:
friend class BrowserContextKeyedAPIFactory<HotwordPrivateEventService>;
- void SignalEvent();
+ void SignalEvent(const std::string& event_name);
Profile* profile_;
PrefChangeRegistrar pref_change_registrar_;
@@ -77,6 +81,32 @@ class HotwordPrivateGetStatusFunction : public ChromeSyncExtensionFunction {
virtual bool RunSync() OVERRIDE;
};
+class HotwordPrivateSetHotwordSessionStateFunction
+ : public ChromeSyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("hotwordPrivate.setHotwordSessionState",
+ HOTWORDPRIVATE_SETHOTWORDSESSIONSTATE);
+
+ protected:
+ virtual ~HotwordPrivateSetHotwordSessionStateFunction() {}
+
+ // ExtensionFunction:
+ virtual bool RunSync() OVERRIDE;
+};
+
+class HotwordPrivateNotifyHotwordRecognitionFunction
+ : public ChromeSyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("hotwordPrivate.notifyHotwordRecognition",
+ HOTWORDPRIVATE_NOTIFYHOTWORDRECOGNITION);
+
+ protected:
+ virtual ~HotwordPrivateNotifyHotwordRecognitionFunction() {}
+
+ // ExtensionFunction:
+ virtual bool RunSync() OVERRIDE;
+};
+
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/hotword_private/hotword_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698