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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.notifyHotwordRecognition", | 100 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.notifyHotwordRecognition", |
101 HOTWORDPRIVATE_NOTIFYHOTWORDRECOGNITION); | 101 HOTWORDPRIVATE_NOTIFYHOTWORDRECOGNITION); |
102 | 102 |
103 protected: | 103 protected: |
104 virtual ~HotwordPrivateNotifyHotwordRecognitionFunction() {} | 104 virtual ~HotwordPrivateNotifyHotwordRecognitionFunction() {} |
105 | 105 |
106 // ExtensionFunction: | 106 // ExtensionFunction: |
107 virtual bool RunSync() OVERRIDE; | 107 virtual bool RunSync() OVERRIDE; |
108 }; | 108 }; |
109 | 109 |
| 110 class HotwordPrivateGetLaunchStateFunction : |
| 111 public ChromeSyncExtensionFunction { |
| 112 public: |
| 113 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.getLaunchState", |
| 114 HOTWORDPRIVATE_GETLAUNCHSTATE) |
| 115 |
| 116 protected: |
| 117 virtual ~HotwordPrivateGetLaunchStateFunction() {} |
| 118 |
| 119 // ExtensionFunction: |
| 120 virtual bool RunSync() OVERRIDE; |
| 121 }; |
| 122 |
110 } // namespace extensions | 123 } // namespace extensions |
111 | 124 |
112 #endif // CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ | 125 #endif // CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ |
OLD | NEW |