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

Unified Diff: chrome/common/extensions/api/hotword_private.idl

Issue 528113003: Hotword Audio Verification App: Adds to hotwordPrivate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@page-one
Patch Set: Review comments Created 6 years, 3 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/common/extensions/api/hotword_private.idl
diff --git a/chrome/common/extensions/api/hotword_private.idl b/chrome/common/extensions/api/hotword_private.idl
index a9a4fc235e32b2311a59e2c54d6f85fff7915da4..43d1baae700ab638b53db6fbef64ef539564baab 100644
--- a/chrome/common/extensions/api/hotword_private.idl
+++ b/chrome/common/extensions/api/hotword_private.idl
@@ -32,11 +32,18 @@
boolean experimentalHotwordEnabled;
};
+ dictionary LaunchState {
+ // The mode that the Hotword Audio Verification app was launched in.
+ long launchMode;
rpetterson 2014/09/10 23:04:23 Are you planning on adding more items to this Stat
kcarattini 2014/09/11 00:08:30 Done.
+ };
+
+
// The type of the recognized hotword. Right now it only has 'search' but
// could be expanded to other types of actions in the future.
enum HotwordType { search };
callback GenericDoneCallback = void ();
+ callback LaunchStateCallback = void(LaunchState result);
callback StatusDetailsCallback = void(StatusDetails result);
interface Functions {
@@ -62,6 +69,10 @@
// hotword session.
static void notifyHotwordRecognition(HotwordType type,
optional GenericDoneCallback callback);
+
+ // Retrieves the state that the Hotword Audio Verification app was
+ // launched in. The result is put into a LaunchState object.
+ static void getLaunchState(LaunchStateCallback callback);
};
interface Events {

Powered by Google App Engine
This is Rietveld 408576698