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 EXTENSIONS_BROWSER_NOTIFICATION_TYPES_H_ | 5 #ifndef EXTENSIONS_BROWSER_NOTIFICATION_TYPES_H_ |
6 #define EXTENSIONS_BROWSER_NOTIFICATION_TYPES_H_ | 6 #define EXTENSIONS_BROWSER_NOTIFICATION_TYPES_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "content/public/browser/notification_types.h" | 10 #include "content/public/browser/notification_types.h" |
| 11 #include "extensions/features/features.h" |
11 | 12 |
12 #if !defined(ENABLE_EXTENSIONS) | 13 #if !BUILDFLAG(ENABLE_EXTENSIONS) |
13 #error "Extensions must be enabled" | 14 #error "Extensions must be enabled" |
14 #endif | 15 #endif |
15 | 16 |
16 namespace extensions { | 17 namespace extensions { |
17 | 18 |
18 // Only notifications fired by the extensions module should be here. The | 19 // Only notifications fired by the extensions module should be here. The |
19 // extensions module should not listen to notifications fired by the | 20 // extensions module should not listen to notifications fired by the |
20 // embedder. | 21 // embedder. |
21 enum NotificationType { | 22 enum NotificationType { |
22 // WARNING: This need to match chrome/browser/chrome_notification_types.h. | 23 // WARNING: This need to match chrome/browser/chrome_notification_types.h. |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 const std::string& accelerator); | 196 const std::string& accelerator); |
196 | 197 |
197 std::string extension_id; | 198 std::string extension_id; |
198 std::string command_name; | 199 std::string command_name; |
199 std::string accelerator; | 200 std::string accelerator; |
200 }; | 201 }; |
201 | 202 |
202 } // namespace extensions | 203 } // namespace extensions |
203 | 204 |
204 #endif // EXTENSIONS_BROWSER_NOTIFICATION_TYPES_H_ | 205 #endif // EXTENSIONS_BROWSER_NOTIFICATION_TYPES_H_ |
OLD | NEW |