OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_NOTIFICATION_TYPE_H_ | 5 #ifndef CHROME_COMMON_NOTIFICATION_TYPE_H_ |
6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ | 6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 // This file describes various types used to describe and filter notifications | 9 // This file describes various types used to describe and filter notifications |
10 // that pass through the NotificationService. | 10 // that pass through the NotificationService. |
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 | 861 |
862 // Sent when a page action's visibility has changed. The source is the | 862 // Sent when a page action's visibility has changed. The source is the |
863 // ExtensionAction* that changed. The details are a TabContents*. | 863 // ExtensionAction* that changed. The details are a TabContents*. |
864 EXTENSION_PAGE_ACTION_VISIBILITY_CHANGED, | 864 EXTENSION_PAGE_ACTION_VISIBILITY_CHANGED, |
865 | 865 |
866 // Sent by an extension to notify the browser about the results of a unit | 866 // Sent by an extension to notify the browser about the results of a unit |
867 // test. | 867 // test. |
868 EXTENSION_TEST_PASSED, | 868 EXTENSION_TEST_PASSED, |
869 EXTENSION_TEST_FAILED, | 869 EXTENSION_TEST_FAILED, |
870 | 870 |
| 871 // Sent by extension test javascript code, typically in a browser test. The |
| 872 // sender is a std::string representing the extension id, and the details |
| 873 // are a std::string with some message. This is particularly useful when you |
| 874 // want to have C++ code wait for javascript code to do something. |
| 875 EXTENSION_TEST_MESSAGE, |
| 876 |
871 // Sent when an bookmarks extensions API function was successfully invoked. | 877 // Sent when an bookmarks extensions API function was successfully invoked. |
872 // The source is the id of the extension that invoked the function, and the | 878 // The source is the id of the extension that invoked the function, and the |
873 // details are a pointer to the const BookmarksFunction in question. | 879 // details are a pointer to the const BookmarksFunction in question. |
874 EXTENSION_BOOKMARKS_API_INVOKED, | 880 EXTENSION_BOOKMARKS_API_INVOKED, |
875 | 881 |
876 // Sent when an omnibox extension has sent back omnibox suggestions. The | 882 // Sent when an omnibox extension has sent back omnibox suggestions. The |
877 // source is the profile, and the details are an ExtensionOmniboxSuggestions | 883 // source is the profile, and the details are an ExtensionOmniboxSuggestions |
878 // object. | 884 // object. |
879 EXTENSION_OMNIBOX_SUGGESTIONS_READY, | 885 EXTENSION_OMNIBOX_SUGGESTIONS_READY, |
880 | 886 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 }; | 1125 }; |
1120 | 1126 |
1121 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1127 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1122 return a == b.value; | 1128 return a == b.value; |
1123 } | 1129 } |
1124 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1130 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1125 return a != b.value; | 1131 return a != b.value; |
1126 } | 1132 } |
1127 | 1133 |
1128 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1134 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |