| 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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 | 893 |
| 894 // Sent when the user accepts the input in an extension omnibox keyword | 894 // Sent when the user accepts the input in an extension omnibox keyword |
| 895 // session. The source is the profile. | 895 // session. The source is the profile. |
| 896 EXTENSION_OMNIBOX_INPUT_ENTERED, | 896 EXTENSION_OMNIBOX_INPUT_ENTERED, |
| 897 | 897 |
| 898 // Sent when an extension changes a preference value. The source is the | 898 // Sent when an extension changes a preference value. The source is the |
| 899 // profile, and the details are an ExtensionPrefStore::ExtensionPrefDetails | 899 // profile, and the details are an ExtensionPrefStore::ExtensionPrefDetails |
| 900 // object. | 900 // object. |
| 901 EXTENSION_PREF_CHANGED, | 901 EXTENSION_PREF_CHANGED, |
| 902 | 902 |
| 903 // Debugging --------------------------------------------------------------- | |
| 904 | |
| 905 // TODO(mpcomplete): Sent to diagnose a bug. Remove when fixed. | |
| 906 // http://code.google.com/p/chromium/issues/detail?id=21201 | |
| 907 EXTENSION_PORT_DELETED_DEBUG, | |
| 908 | |
| 909 // Desktop Notifications --------------------------------------------------- | 903 // Desktop Notifications --------------------------------------------------- |
| 910 | 904 |
| 911 // This notification is sent when a balloon is connected to a renderer | 905 // This notification is sent when a balloon is connected to a renderer |
| 912 // process to render the balloon contents. The source is a | 906 // process to render the balloon contents. The source is a |
| 913 // Source<BalloonHost> with a pointer to the the balloon. A | 907 // Source<BalloonHost> with a pointer to the the balloon. A |
| 914 // NOTIFY_BALLOON_DISCONNECTED is guaranteed before the source pointer | 908 // NOTIFY_BALLOON_DISCONNECTED is guaranteed before the source pointer |
| 915 // becomes junk. No details expected. | 909 // becomes junk. No details expected. |
| 916 NOTIFY_BALLOON_CONNECTED, | 910 NOTIFY_BALLOON_CONNECTED, |
| 917 | 911 |
| 918 // This message is sent after a balloon is disconnected from the renderer | 912 // This message is sent after a balloon is disconnected from the renderer |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1165 }; | 1159 }; |
| 1166 | 1160 |
| 1167 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1161 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1168 return a == b.value; | 1162 return a == b.value; |
| 1169 } | 1163 } |
| 1170 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1164 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1171 return a != b.value; | 1165 return a != b.value; |
| 1172 } | 1166 } |
| 1173 | 1167 |
| 1174 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1168 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |