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

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

Issue 267653005: Adds HotwordPrivate API for integrating the hotword feature to AppLauncher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix & rebase Created 6 years, 8 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 7e1a60b89cb99c5b556b398ecf888398c57889f4..ecdc008c1103612fa7e9181272609173781bd7c2 100644
--- a/chrome/common/extensions/api/hotword_private.idl
+++ b/chrome/common/extensions/api/hotword_private.idl
@@ -28,6 +28,10 @@
boolean audioLoggingEnabled;
};
+ // 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 StatusDetailsCallback = void(StatusDetails result);
@@ -43,10 +47,23 @@
// Sets the current enabled state of audio logging in the extension.
// True: logging enabled. False: no logging.
static void setAudioLoggingEnabled(boolean state, optional GenericDoneCallback callback);
+
+ // Sets the current state of the browser-requested hotword session.
+ static void setHotwordSessionState(boolean started, optional GenericDoneCallback callback);
asargent_no_longer_on_chrome 2014/05/04 21:55:23 nit: > 80 chars - wrap at the "," like a c++ funct
Jun Mukai 2014/05/05 18:45:04 Done.
+
+ // Notifies that a hotword has been recognized in the browser-requested
+ // hotword session.
+ static void notifyHotwordRecognition(HotwordType type, optional GenericDoneCallback callback);
asargent_no_longer_on_chrome 2014/05/04 21:55:23 same nit here
Jun Mukai 2014/05/05 18:45:04 Done.
};
interface Events {
// Fired when the hotword search enabled preference is changed.
static void onEnabledChanged();
+
+ // Fired when the browser wants to start a hotword session.
+ static void onHotwordSessionRequested();
+
+ // Fired when the browser wants to stop the requested hotword session.
+ static void onHotwordSessionStopped();
};
};

Powered by Google App Engine
This is Rietveld 408576698