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 f9de90809a7e3cf5fbcf213fd1f6ff8859ea60a7..e71be830db00a66f12e49c2ec67ee09b03765e6c 100644 |
--- a/chrome/common/extensions/api/hotword_private.idl |
+++ b/chrome/common/extensions/api/hotword_private.idl |
@@ -35,11 +35,21 @@ |
boolean alwaysOnEnabled; |
}; |
+ dictionary LaunchState { |
+ // TODO(kcarattini): Consider adding more variables here, |
+ // such as the available state of the hotword service. |
+ |
+ // The mode that the Hotword Audio Verification app was launched in. |
+ long launchMode; |
+ }; |
+ |
+ |
// 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 { |
@@ -65,6 +75,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 { |