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 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
997 // quite some time after the upgrade actually happened. No details are | 997 // quite some time after the upgrade actually happened. No details are |
998 // expected. | 998 // expected. |
999 UPGRADE_DETECTED, | 999 UPGRADE_DETECTED, |
1000 | 1000 |
1001 // Sent when Chrome believes an update has been installed and available for | 1001 // Sent when Chrome believes an update has been installed and available for |
1002 // long enough with the user shutting down to let it take effect. See | 1002 // long enough with the user shutting down to let it take effect. See |
1003 // upgrade_detector.cc for details on how long it waits. No details are | 1003 // upgrade_detector.cc for details on how long it waits. No details are |
1004 // expected. | 1004 // expected. |
1005 UPGRADE_RECOMMENDED, | 1005 UPGRADE_RECOMMENDED, |
1006 | 1006 |
| 1007 // Software incompatibility notifications ---------------------------------- |
| 1008 |
| 1009 // Sent when Chrome has finished compiling the list of loaded modules (and |
| 1010 // other modules of interest). No details are expected. |
| 1011 MODULE_LIST_ENUMERATED, |
| 1012 |
| 1013 // Sent when Chrome detects an incompatible module. Details is a boolean |
| 1014 // specifying true if one or more confirmed bad modules were found or false |
| 1015 // if only suspected bad modules were found. |
| 1016 MODULE_INCOMPATIBILITY_DETECTED, |
| 1017 |
1007 // Accessibility Notifications --------------------------------------------- | 1018 // Accessibility Notifications --------------------------------------------- |
1008 | 1019 |
1009 // Notification that a window in the browser UI (not the web content) | 1020 // Notification that a window in the browser UI (not the web content) |
1010 // was opened, for propagating to an accessibility extension. | 1021 // was opened, for propagating to an accessibility extension. |
1011 // Details will be an AccessibilityWindowInfo. | 1022 // Details will be an AccessibilityWindowInfo. |
1012 ACCESSIBILITY_WINDOW_OPENED, | 1023 ACCESSIBILITY_WINDOW_OPENED, |
1013 | 1024 |
1014 // Notification that a window in the browser UI was closed. | 1025 // Notification that a window in the browser UI was closed. |
1015 // Details will be an AccessibilityWindowInfo. | 1026 // Details will be an AccessibilityWindowInfo. |
1016 ACCESSIBILITY_WINDOW_CLOSED, | 1027 ACCESSIBILITY_WINDOW_CLOSED, |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1274 }; | 1285 }; |
1275 | 1286 |
1276 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1287 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1277 return a == b.value; | 1288 return a == b.value; |
1278 } | 1289 } |
1279 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1290 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1280 return a != b.value; | 1291 return a != b.value; |
1281 } | 1292 } |
1282 | 1293 |
1283 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1294 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |