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

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

Issue 555423002: Expose always-on hotword preference via hotwordPrivate API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 12 matching lines...) Expand all
23 // Whether the hotword extension is available to be enabled 23 // Whether the hotword extension is available to be enabled
24 boolean available; 24 boolean available;
25 25
26 // Whether the sound of "Ok, Google" plus a few seconds before is sent 26 // Whether the sound of "Ok, Google" plus a few seconds before is sent
27 // back to Google. 27 // back to Google.
28 boolean audioLoggingEnabled; 28 boolean audioLoggingEnabled;
29 29
30 // Whether experimental hotwording functionality is enabled. Mirrors the 30 // Whether experimental hotwording functionality is enabled. Mirrors the
31 // "enable-experimental-hotwording" flag. 31 // "enable-experimental-hotwording" flag.
32 boolean experimentalHotwordEnabled; 32 boolean experimentalHotwordEnabled;
33
34 // Whether always-on hotwording is enabled.
35 boolean alwaysOnEnabled;
33 }; 36 };
34 37
35 // The type of the recognized hotword. Right now it only has 'search' but 38 // The type of the recognized hotword. Right now it only has 'search' but
36 // could be expanded to other types of actions in the future. 39 // could be expanded to other types of actions in the future.
37 enum HotwordType { search }; 40 enum HotwordType { search };
38 41
39 callback GenericDoneCallback = void (); 42 callback GenericDoneCallback = void ();
40 callback StatusDetailsCallback = void(StatusDetails result); 43 callback StatusDetailsCallback = void(StatusDetails result);
41 44
42 interface Functions { 45 interface Functions {
(...skipping 25 matching lines...) Expand all
68 // Fired when the hotword search enabled preference is changed. 71 // Fired when the hotword search enabled preference is changed.
69 static void onEnabledChanged(); 72 static void onEnabledChanged();
70 73
71 // Fired when the browser wants to start a hotword session. 74 // Fired when the browser wants to start a hotword session.
72 static void onHotwordSessionRequested(); 75 static void onHotwordSessionRequested();
73 76
74 // Fired when the browser wants to stop the requested hotword session. 77 // Fired when the browser wants to stop the requested hotword session.
75 static void onHotwordSessionStopped(); 78 static void onHotwordSessionStopped();
76 }; 79 };
77 }; 80 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698