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

Side by Side Diff: chrome/browser/search/hotword_service.h

Issue 631913004: Open the launcher when hotword is triggered in always-on mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hotword-google-com-ntp
Patch Set: Fix android build Created 6 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_
6 #define CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_ 6 #define CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/prefs/pref_change_registrar.h" 10 #include "base/prefs/pref_change_registrar.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 virtual bool IsServiceAvailable(); 65 virtual bool IsServiceAvailable();
66 66
67 // Determine if hotwording is allowed in this profile based on field trials 67 // Determine if hotwording is allowed in this profile based on field trials
68 // and language. 68 // and language.
69 virtual bool IsHotwordAllowed(); 69 virtual bool IsHotwordAllowed();
70 70
71 // Checks if the user has opted into audio logging. Returns true if the user 71 // Checks if the user has opted into audio logging. Returns true if the user
72 // is opted in, false otherwise.. 72 // is opted in, false otherwise..
73 bool IsOptedIntoAudioLogging(); 73 bool IsOptedIntoAudioLogging();
74 74
75 // Returns whether always-on hotwording is enabled.
76 bool IsAlwaysOnEnabled();
77
75 // Control the state of the hotword extension. 78 // Control the state of the hotword extension.
76 void EnableHotwordExtension(ExtensionService* extension_service); 79 void EnableHotwordExtension(ExtensionService* extension_service);
77 void DisableHotwordExtension(ExtensionService* extension_service); 80 void DisableHotwordExtension(ExtensionService* extension_service);
78 81
79 // Handles enabling/disabling the hotword extension when the user 82 // Handles enabling/disabling the hotword extension when the user
80 // turns it off via the settings menu. 83 // turns it off via the settings menu.
81 void OnHotwordSearchEnabledChanged(const std::string& pref_name); 84 void OnHotwordSearchEnabledChanged(const std::string& pref_name);
82 85
83 // Called to handle the hotword session from |client|. 86 // Called to handle the hotword session from |client|.
84 void RequestHotwordSession(HotwordClient* client); 87 void RequestHotwordSession(HotwordClient* client);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 145
143 base::WeakPtrFactory<HotwordService> weak_factory_; 146 base::WeakPtrFactory<HotwordService> weak_factory_;
144 147
145 // Stores the launch mode for the Hotword Audio Verification App. 148 // Stores the launch mode for the Hotword Audio Verification App.
146 LaunchMode hotword_audio_verification_launch_mode_; 149 LaunchMode hotword_audio_verification_launch_mode_;
147 150
148 DISALLOW_COPY_AND_ASSIGN(HotwordService); 151 DISALLOW_COPY_AND_ASSIGN(HotwordService);
149 }; 152 };
150 153
151 #endif // CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_ 154 #endif // CHROME_BROWSER_SEARCH_HOTWORD_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/hotword_private/hotword_private_api.cc ('k') | chrome/browser/search/hotword_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698