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

Side by Side Diff: chrome/browser/extensions/api/hotword_private/hotword_private_api.h

Issue 559303002: Hotword Audio Verification app: control the hotword settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@launch-state
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 #ifndef CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_
7 7
8 #include "base/prefs/pref_change_registrar.h" 8 #include "base/prefs/pref_change_registrar.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/extensions/chrome_extension_function.h" 10 #include "chrome/browser/extensions/chrome_extension_function.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.setAudioLoggingEnabled", 62 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.setAudioLoggingEnabled",
63 HOTWORDPRIVATE_SETAUDIOLOGGINGENABLED) 63 HOTWORDPRIVATE_SETAUDIOLOGGINGENABLED)
64 64
65 protected: 65 protected:
66 virtual ~HotwordPrivateSetAudioLoggingEnabledFunction() {} 66 virtual ~HotwordPrivateSetAudioLoggingEnabledFunction() {}
67 67
68 // ExtensionFunction: 68 // ExtensionFunction:
69 virtual bool RunSync() OVERRIDE; 69 virtual bool RunSync() OVERRIDE;
70 }; 70 };
71 71
72 class HotwordPrivateSetHotwordAlwaysOnSearchEnabledFunction
rpetterson 2014/09/11 20:14:17 Perhaps just SetAlwaysOnSearchEnabled? I think the
kcarattini 2014/09/12 01:02:07 The name of the pref being changed in prefs.h is k
rpetterson 2014/09/12 03:03:32 We only use SetEnabled for the pref call kHotwordS
kcarattini 2014/09/12 05:17:56 Acknowledged.
73 : public ChromeSyncExtensionFunction {
74 public:
75 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.setHotwordAlwaysOnSearchEnabled",
76 HOTWORDPRIVATE_SETHOTWORDALWAYSONSEARCHENABLED)
77
78 protected:
79 virtual ~HotwordPrivateSetHotwordAlwaysOnSearchEnabledFunction() {}
80
81 // ExtensionFunction:
82 virtual bool RunSync() OVERRIDE;
83 };
84
72 class HotwordPrivateGetStatusFunction : public ChromeSyncExtensionFunction { 85 class HotwordPrivateGetStatusFunction : public ChromeSyncExtensionFunction {
73 public: 86 public:
74 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.getStatus", 87 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.getStatus",
75 HOTWORDPRIVATE_GETSTATUS) 88 HOTWORDPRIVATE_GETSTATUS)
76 89
77 protected: 90 protected:
78 virtual ~HotwordPrivateGetStatusFunction() {} 91 virtual ~HotwordPrivateGetStatusFunction() {}
79 92
80 // ExtensionFunction: 93 // ExtensionFunction:
81 virtual bool RunSync() OVERRIDE; 94 virtual bool RunSync() OVERRIDE;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 protected: 129 protected:
117 virtual ~HotwordPrivateGetLaunchStateFunction() {} 130 virtual ~HotwordPrivateGetLaunchStateFunction() {}
118 131
119 // ExtensionFunction: 132 // ExtensionFunction:
120 virtual bool RunSync() OVERRIDE; 133 virtual bool RunSync() OVERRIDE;
121 }; 134 };
122 135
123 } // namespace extensions 136 } // namespace extensions
124 137
125 #endif // CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ 138 #endif // CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698