Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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_ |
| OLD | NEW |