| 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 | |
| 877 // Sent when an bookmarks extensions API function was successfully invoked. | 871 // Sent when an bookmarks extensions API function was successfully invoked. |
| 878 // The source is the id of the extension that invoked the function, and the | 872 // The source is the id of the extension that invoked the function, and the |
| 879 // details are a pointer to the const BookmarksFunction in question. | 873 // details are a pointer to the const BookmarksFunction in question. |
| 880 EXTENSION_BOOKMARKS_API_INVOKED, | 874 EXTENSION_BOOKMARKS_API_INVOKED, |
| 881 | 875 |
| 882 // Sent when an omnibox extension has sent back omnibox suggestions. The | 876 // Sent when an omnibox extension has sent back omnibox suggestions. The |
| 883 // source is the profile, and the details are an ExtensionOmniboxSuggestions | 877 // source is the profile, and the details are an ExtensionOmniboxSuggestions |
| 884 // object. | 878 // object. |
| 885 EXTENSION_OMNIBOX_SUGGESTIONS_READY, | 879 EXTENSION_OMNIBOX_SUGGESTIONS_READY, |
| 886 | 880 |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1125 }; | 1119 }; |
| 1126 | 1120 |
| 1127 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1121 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1128 return a == b.value; | 1122 return a == b.value; |
| 1129 } | 1123 } |
| 1130 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1124 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1131 return a != b.value; | 1125 return a != b.value; |
| 1132 } | 1126 } |
| 1133 | 1127 |
| 1134 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1128 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |