| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 5 #ifndef CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
| 6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/public/browser/notification_types.h" | 9 #include "content/public/browser/notification_types.h" |
| 10 | 10 |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 // sender is a std::string representing the extension id, and the details | 566 // sender is a std::string representing the extension id, and the details |
| 567 // are a std::string with some message. This is particularly useful when you | 567 // are a std::string with some message. This is particularly useful when you |
| 568 // want to have C++ code wait for javascript code to do something. | 568 // want to have C++ code wait for javascript code to do something. |
| 569 NOTIFICATION_EXTENSION_TEST_MESSAGE, | 569 NOTIFICATION_EXTENSION_TEST_MESSAGE, |
| 570 | 570 |
| 571 // Sent when an bookmarks extensions API function was successfully invoked. | 571 // Sent when an bookmarks extensions API function was successfully invoked. |
| 572 // The source is the id of the extension that invoked the function, and the | 572 // The source is the id of the extension that invoked the function, and the |
| 573 // details are a pointer to the const BookmarksFunction in question. | 573 // details are a pointer to the const BookmarksFunction in question. |
| 574 NOTIFICATION_EXTENSION_BOOKMARKS_API_INVOKED, | 574 NOTIFICATION_EXTENSION_BOOKMARKS_API_INVOKED, |
| 575 | 575 |
| 576 // Sent when a downloads extensions API event is fired. The source is an |
| 577 // ExtensionDownloadsEventRouter::NotificationSource, and the details is a |
| 578 // std::string containing json. Used for testing. |
| 579 NOTIFICATION_EXTENSION_DOWNLOADS_EVENT, |
| 580 |
| 576 // Sent when an omnibox extension has sent back omnibox suggestions. The | 581 // Sent when an omnibox extension has sent back omnibox suggestions. The |
| 577 // source is the profile, and the details are an ExtensionOmniboxSuggestions | 582 // source is the profile, and the details are an ExtensionOmniboxSuggestions |
| 578 // object. | 583 // object. |
| 579 NOTIFICATION_EXTENSION_OMNIBOX_SUGGESTIONS_READY, | 584 NOTIFICATION_EXTENSION_OMNIBOX_SUGGESTIONS_READY, |
| 580 | 585 |
| 581 // Sent when the user accepts the input in an extension omnibox keyword | 586 // Sent when the user accepts the input in an extension omnibox keyword |
| 582 // session. The source is the profile. | 587 // session. The source is the profile. |
| 583 NOTIFICATION_EXTENSION_OMNIBOX_INPUT_ENTERED, | 588 NOTIFICATION_EXTENSION_OMNIBOX_INPUT_ENTERED, |
| 584 | 589 |
| 585 // Sent when an omnibox extension has updated the default suggestion. The | 590 // Sent when an omnibox extension has updated the default suggestion. The |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1165 // Currently only Content and Chrome define and use notifications. | 1170 // Currently only Content and Chrome define and use notifications. |
| 1166 // Custom notifications not belonging to Content and Chrome should start | 1171 // Custom notifications not belonging to Content and Chrome should start |
| 1167 // from here. | 1172 // from here. |
| 1168 NOTIFICATION_CHROME_END, | 1173 NOTIFICATION_CHROME_END, |
| 1169 }; | 1174 }; |
| 1170 | 1175 |
| 1171 } // namespace chrome | 1176 } // namespace chrome |
| 1172 | 1177 |
| 1173 | 1178 |
| 1174 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1179 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
| OLD | NEW |