OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 5 #ifndef CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
6 #define CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 6 #define CONTENT_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 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
970 // installed extensions. The source is a Profile, and there are no details. | 970 // installed extensions. The source is a Profile, and there are no details. |
971 // NOTE: It's possible that there are extension updates still being | 971 // NOTE: It's possible that there are extension updates still being |
972 // installed by the extension service at the time this notification fires. | 972 // installed by the extension service at the time this notification fires. |
973 EXTENSION_UPDATING_FINISHED, | 973 EXTENSION_UPDATING_FINISHED, |
974 | 974 |
975 // The extension updater found an update and will attempt to download and | 975 // The extension updater found an update and will attempt to download and |
976 // install it. The source is a Profile, and the details are an extension id | 976 // install it. The source is a Profile, and the details are an extension id |
977 // (const std::string). | 977 // (const std::string). |
978 EXTENSION_UPDATE_FOUND, | 978 EXTENSION_UPDATE_FOUND, |
979 | 979 |
980 // An installed app changed state (added or removed notifications). | |
Finnur
2011/06/20 12:21:46
Maybe fill in the data that is expected to be prov
asargent_no_longer_on_chrome
2011/06/21 18:10:11
Done.
| |
981 APP_NOTIFICATION_STATE_CHANGED, | |
982 | |
980 // Desktop Notifications --------------------------------------------------- | 983 // Desktop Notifications --------------------------------------------------- |
981 | 984 |
982 // This notification is sent when a balloon is connected to a renderer | 985 // This notification is sent when a balloon is connected to a renderer |
983 // process to render the balloon contents. The source is a | 986 // process to render the balloon contents. The source is a |
984 // Source<BalloonHost> with a pointer to the the balloon. A | 987 // Source<BalloonHost> with a pointer to the the balloon. A |
985 // NOTIFY_BALLOON_DISCONNECTED is guaranteed before the source pointer | 988 // NOTIFY_BALLOON_DISCONNECTED is guaranteed before the source pointer |
986 // becomes junk. No details expected. | 989 // becomes junk. No details expected. |
987 NOTIFY_BALLOON_CONNECTED, | 990 NOTIFY_BALLOON_CONNECTED, |
988 | 991 |
989 // This message is sent after a balloon is disconnected from the renderer | 992 // This message is sent after a balloon is disconnected from the renderer |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1344 }; | 1347 }; |
1345 | 1348 |
1346 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1349 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1347 return a == b.value; | 1350 return a == b.value; |
1348 } | 1351 } |
1349 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1352 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1350 return a != b.value; | 1353 return a != b.value; |
1351 } | 1354 } |
1352 | 1355 |
1353 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1356 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |