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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 // sender is a std::string representing the extension id, and the details | 582 // sender is a std::string representing the extension id, and the details |
583 // are a std::string with some message. This is particularly useful when you | 583 // are a std::string with some message. This is particularly useful when you |
584 // want to have C++ code wait for javascript code to do something. | 584 // want to have C++ code wait for javascript code to do something. |
585 NOTIFICATION_EXTENSION_TEST_MESSAGE, | 585 NOTIFICATION_EXTENSION_TEST_MESSAGE, |
586 | 586 |
587 // Sent when an bookmarks extensions API function was successfully invoked. | 587 // Sent when an bookmarks extensions API function was successfully invoked. |
588 // The source is the id of the extension that invoked the function, and the | 588 // The source is the id of the extension that invoked the function, and the |
589 // details are a pointer to the const BookmarksFunction in question. | 589 // details are a pointer to the const BookmarksFunction in question. |
590 NOTIFICATION_EXTENSION_BOOKMARKS_API_INVOKED, | 590 NOTIFICATION_EXTENSION_BOOKMARKS_API_INVOKED, |
591 | 591 |
| 592 // Sent when a downloads extensions API event is fired. The source is an |
| 593 // ExtensionDownloadsEventRouter::NotificationSource, and the details is a |
| 594 // std::string containing json. Used for testing. |
| 595 NOTIFICATION_EXTENSION_DOWNLOADS_EVENT, |
| 596 |
592 // Sent when an omnibox extension has sent back omnibox suggestions. The | 597 // Sent when an omnibox extension has sent back omnibox suggestions. The |
593 // source is the profile, and the details are an ExtensionOmniboxSuggestions | 598 // source is the profile, and the details are an ExtensionOmniboxSuggestions |
594 // object. | 599 // object. |
595 NOTIFICATION_EXTENSION_OMNIBOX_SUGGESTIONS_READY, | 600 NOTIFICATION_EXTENSION_OMNIBOX_SUGGESTIONS_READY, |
596 | 601 |
597 // Sent when the user accepts the input in an extension omnibox keyword | 602 // Sent when the user accepts the input in an extension omnibox keyword |
598 // session. The source is the profile. | 603 // session. The source is the profile. |
599 NOTIFICATION_EXTENSION_OMNIBOX_INPUT_ENTERED, | 604 NOTIFICATION_EXTENSION_OMNIBOX_INPUT_ENTERED, |
600 | 605 |
601 // Sent when an omnibox extension has updated the default suggestion. The | 606 // Sent when an omnibox extension has updated the default suggestion. The |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1183 // Currently only Content and Chrome define and use notifications. | 1188 // Currently only Content and Chrome define and use notifications. |
1184 // Custom notifications not belonging to Content and Chrome should start | 1189 // Custom notifications not belonging to Content and Chrome should start |
1185 // from here. | 1190 // from here. |
1186 NOTIFICATION_CHROME_END, | 1191 NOTIFICATION_CHROME_END, |
1187 }; | 1192 }; |
1188 | 1193 |
1189 } // namespace chrome | 1194 } // namespace chrome |
1190 | 1195 |
1191 | 1196 |
1192 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1197 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
OLD | NEW |