| 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 "content/public/browser/notification_types.h" | 8 #include "content/public/browser/notification_types.h" |
| 9 | 9 |
| 10 namespace extensions { | 10 namespace extensions { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // Sent when the count of page actions has changed. Note that some of them | 119 // Sent when the count of page actions has changed. Note that some of them |
| 120 // may not apply to the current page. The source is a LocationBar*. There | 120 // may not apply to the current page. The source is a LocationBar*. There |
| 121 // are no details. | 121 // are no details. |
| 122 NOTIFICATION_EXTENSION_PAGE_ACTION_COUNT_CHANGED, | 122 NOTIFICATION_EXTENSION_PAGE_ACTION_COUNT_CHANGED, |
| 123 | 123 |
| 124 // Sent when a browser action's visibility has changed. The source is the | 124 // Sent when a browser action's visibility has changed. The source is the |
| 125 // ExtensionPrefs* that changed, and the details are a std::string with the | 125 // ExtensionPrefs* that changed, and the details are a std::string with the |
| 126 // extension's ID. | 126 // extension's ID. |
| 127 NOTIFICATION_EXTENSION_BROWSER_ACTION_VISIBILITY_CHANGED, | 127 NOTIFICATION_EXTENSION_BROWSER_ACTION_VISIBILITY_CHANGED, |
| 128 | 128 |
| 129 // Sent when the page actions have been updated. The source is a WebContents*, | |
| 130 // and there are no details. | |
| 131 NOTIFICATION_EXTENSION_PAGE_ACTIONS_UPDATED, | |
| 132 | |
| 133 // Sent when an extension command has been removed. The source is the | 129 // Sent when an extension command has been removed. The source is the |
| 134 // BrowserContext* and the details is a std::pair of two std::string objects | 130 // BrowserContext* and the details is a std::pair of two std::string objects |
| 135 // (an extension ID and the name of the command being removed). | 131 // (an extension ID and the name of the command being removed). |
| 136 NOTIFICATION_EXTENSION_COMMAND_REMOVED, | 132 NOTIFICATION_EXTENSION_COMMAND_REMOVED, |
| 137 | 133 |
| 138 // Sent when an extension command has been added. The source is the | 134 // Sent when an extension command has been added. The source is the |
| 139 // BrowserContext* and the details is a std::pair of two std::string objects | 135 // BrowserContext* and the details is a std::pair of two std::string objects |
| 140 // (an extension ID and the name of the command being added). | 136 // (an extension ID and the name of the command being added). |
| 141 NOTIFICATION_EXTENSION_COMMAND_ADDED, | 137 NOTIFICATION_EXTENSION_COMMAND_ADDED, |
| 142 | 138 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 203 |
| 208 // Sent when there are new user scripts available. The details are a | 204 // Sent when there are new user scripts available. The details are a |
| 209 // pointer to SharedMemory containing the new scripts. | 205 // pointer to SharedMemory containing the new scripts. |
| 210 NOTIFICATION_USER_SCRIPTS_UPDATED, | 206 NOTIFICATION_USER_SCRIPTS_UPDATED, |
| 211 NOTIFICATION_EXTENSIONS_END | 207 NOTIFICATION_EXTENSIONS_END |
| 212 }; | 208 }; |
| 213 | 209 |
| 214 } // namespace extensions | 210 } // namespace extensions |
| 215 | 211 |
| 216 #endif // EXTENSIONS_BROWSER_NOTIFICATION_TYPES_H_ | 212 #endif // EXTENSIONS_BROWSER_NOTIFICATION_TYPES_H_ |
| OLD | NEW |