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

Side by Side Diff: chrome/common/extensions/api/hotword_private.idl

Issue 559303002: Hotword Audio Verification app: control the hotword settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@launch-state
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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The <code>chrome.hotwordPrivate</code> API allows extensions to access and 5 // The <code>chrome.hotwordPrivate</code> API allows extensions to access and
6 // mutate the preference for enabling hotword search. It also provides 6 // mutate the preference for enabling hotword search. It also provides
7 // information on whether the hotword search is available. This API provides an 7 // information on whether the hotword search is available. This API provides an
8 // event interface to transmit to the extension a signal that the preference fo 8 // event interface to transmit to the extension a signal that the preference fo
9 // hotword search has change. 9 // hotword search has change.
10 // 10 //
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // Retrieves the current state of hotword search. 61 // Retrieves the current state of hotword search.
62 // The result is put into a StatusDetails object. 62 // The result is put into a StatusDetails object.
63 static void getStatus(StatusDetailsCallback callback); 63 static void getStatus(StatusDetailsCallback callback);
64 64
65 // Sets the current enabled state of audio logging in the extension. 65 // Sets the current enabled state of audio logging in the extension.
66 // True: logging enabled. False: no logging. 66 // True: logging enabled. False: no logging.
67 static void setAudioLoggingEnabled(boolean state, 67 static void setAudioLoggingEnabled(boolean state,
68 optional GenericDoneCallback callback); 68 optional GenericDoneCallback callback);
69 69
70 // Sets the current enabled state of hotword-always-on-search pref.
71 // True: enable hotword always on search.
72 // False: disable hotword always on search.
73 static void setHotwordAlwaysOnSearchEnabled(boolean state,
74 optional GenericDoneCallback callback);
75
70 // Sets the current state of the browser-requested hotword session. 76 // Sets the current state of the browser-requested hotword session.
71 static void setHotwordSessionState(boolean started, 77 static void setHotwordSessionState(boolean started,
72 optional GenericDoneCallback callback); 78 optional GenericDoneCallback callback);
73 79
74 // Notifies that a hotword has been recognized in the browser-requested 80 // Notifies that a hotword has been recognized in the browser-requested
75 // hotword session. 81 // hotword session.
76 static void notifyHotwordRecognition(HotwordType type, 82 static void notifyHotwordRecognition(HotwordType type,
77 optional GenericDoneCallback callback); 83 optional GenericDoneCallback callback);
78 84
79 // Retrieves the state that the Hotword Audio Verification app was 85 // Retrieves the state that the Hotword Audio Verification app was
80 // launched in. The result is put into a LaunchState object. 86 // launched in. The result is put into a LaunchState object.
81 static void getLaunchState(LaunchStateCallback callback); 87 static void getLaunchState(LaunchStateCallback callback);
82 }; 88 };
83 89
84 interface Events { 90 interface Events {
85 // Fired when the hotword search enabled preference is changed. 91 // Fired when the hotword search enabled preference is changed.
86 static void onEnabledChanged(); 92 static void onEnabledChanged();
87 93
88 // Fired when the browser wants to start a hotword session. 94 // Fired when the browser wants to start a hotword session.
89 static void onHotwordSessionRequested(); 95 static void onHotwordSessionRequested();
90 96
91 // Fired when the browser wants to stop the requested hotword session. 97 // Fired when the browser wants to stop the requested hotword session.
92 static void onHotwordSessionStopped(); 98 static void onHotwordSessionStopped();
93 }; 99 };
94 }; 100 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698