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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 // sender is a std::string representing the extension id, and the details | 572 // sender is a std::string representing the extension id, and the details |
573 // are a std::string with some message. This is particularly useful when you | 573 // are a std::string with some message. This is particularly useful when you |
574 // want to have C++ code wait for javascript code to do something. | 574 // want to have C++ code wait for javascript code to do something. |
575 NOTIFICATION_EXTENSION_TEST_MESSAGE, | 575 NOTIFICATION_EXTENSION_TEST_MESSAGE, |
576 | 576 |
577 // Sent when an bookmarks extensions API function was successfully invoked. | 577 // Sent when an bookmarks extensions API function was successfully invoked. |
578 // The source is the id of the extension that invoked the function, and the | 578 // The source is the id of the extension that invoked the function, and the |
579 // details are a pointer to the const BookmarksFunction in question. | 579 // details are a pointer to the const BookmarksFunction in question. |
580 NOTIFICATION_EXTENSION_BOOKMARKS_API_INVOKED, | 580 NOTIFICATION_EXTENSION_BOOKMARKS_API_INVOKED, |
581 | 581 |
582 // Sent when a downloads extensions API event is fired. The source is an | |
583 // ExtensionDownloadsEventRouter::NotificationSource, and the details is a | |
584 // std::string containing json. Used for testing. | |
585 NOTIFICATION_EXTENSION_DOWNLOADS_EVENT, | |
586 | |
587 // Sent when an omnibox extension has sent back omnibox suggestions. The | 582 // Sent when an omnibox extension has sent back omnibox suggestions. The |
588 // source is the profile, and the details are an ExtensionOmniboxSuggestions | 583 // source is the profile, and the details are an ExtensionOmniboxSuggestions |
589 // object. | 584 // object. |
590 NOTIFICATION_EXTENSION_OMNIBOX_SUGGESTIONS_READY, | 585 NOTIFICATION_EXTENSION_OMNIBOX_SUGGESTIONS_READY, |
591 | 586 |
592 // Sent when the user accepts the input in an extension omnibox keyword | 587 // Sent when the user accepts the input in an extension omnibox keyword |
593 // session. The source is the profile. | 588 // session. The source is the profile. |
594 NOTIFICATION_EXTENSION_OMNIBOX_INPUT_ENTERED, | 589 NOTIFICATION_EXTENSION_OMNIBOX_INPUT_ENTERED, |
595 | 590 |
596 // Sent when an omnibox extension has updated the default suggestion. The | 591 // Sent when an omnibox extension has updated the default suggestion. The |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1178 // Currently only Content and Chrome define and use notifications. | 1173 // Currently only Content and Chrome define and use notifications. |
1179 // Custom notifications not belonging to Content and Chrome should start | 1174 // Custom notifications not belonging to Content and Chrome should start |
1180 // from here. | 1175 // from here. |
1181 NOTIFICATION_CHROME_END, | 1176 NOTIFICATION_CHROME_END, |
1182 }; | 1177 }; |
1183 | 1178 |
1184 } // namespace chrome | 1179 } // namespace chrome |
1185 | 1180 |
1186 | 1181 |
1187 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1182 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
OLD | NEW |