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 { |