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

Side by Side Diff: extensions/browser/notification_types.h

Issue 2479593006: Move enable extensions define to a build flag. (Closed)
Patch Set: Merge Created 4 years, 1 month 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
« no previous file with comments | « extensions/browser/extension_system.h ('k') | extensions/common/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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_
OLDNEW
« no previous file with comments | « extensions/browser/extension_system.h ('k') | extensions/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698