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 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
948 | 948 |
949 // Sent when an omnibox extension has sent back omnibox suggestions. The | 949 // Sent when an omnibox extension has sent back omnibox suggestions. The |
950 // source is the profile, and the details are an ExtensionOmniboxSuggestions | 950 // source is the profile, and the details are an ExtensionOmniboxSuggestions |
951 // object. | 951 // object. |
952 EXTENSION_OMNIBOX_SUGGESTIONS_READY, | 952 EXTENSION_OMNIBOX_SUGGESTIONS_READY, |
953 | 953 |
954 // Sent when the user accepts the input in an extension omnibox keyword | 954 // Sent when the user accepts the input in an extension omnibox keyword |
955 // session. The source is the profile. | 955 // session. The source is the profile. |
956 EXTENSION_OMNIBOX_INPUT_ENTERED, | 956 EXTENSION_OMNIBOX_INPUT_ENTERED, |
957 | 957 |
| 958 // Sent when an omnibox extension has updated the default suggestion. The |
| 959 // source is the profile. |
| 960 EXTENSION_OMNIBOX_DEFAULT_SUGGESTION_CHANGED, |
| 961 |
958 // Sent when an extension changes a preference value. The source is the | 962 // Sent when an extension changes a preference value. The source is the |
959 // profile, and the details are an ExtensionPrefStore::ExtensionPrefDetails | 963 // profile, and the details are an ExtensionPrefStore::ExtensionPrefDetails |
960 // object. | 964 // object. |
961 EXTENSION_PREF_CHANGED, | 965 EXTENSION_PREF_CHANGED, |
962 | 966 |
963 // Desktop Notifications --------------------------------------------------- | 967 // Desktop Notifications --------------------------------------------------- |
964 | 968 |
965 // This notification is sent when a balloon is connected to a renderer | 969 // This notification is sent when a balloon is connected to a renderer |
966 // process to render the balloon contents. The source is a | 970 // process to render the balloon contents. The source is a |
967 // Source<BalloonHost> with a pointer to the the balloon. A | 971 // Source<BalloonHost> with a pointer to the the balloon. A |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1318 }; | 1322 }; |
1319 | 1323 |
1320 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1324 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1321 return a == b.value; | 1325 return a == b.value; |
1322 } | 1326 } |
1323 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1327 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1324 return a != b.value; | 1328 return a != b.value; |
1325 } | 1329 } |
1326 | 1330 |
1327 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1331 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |