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

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

Powered by Google App Engine
This is Rietveld 408576698