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 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1276 // This notification is sent whenenever login entries stored in the password | 1276 // This notification is sent whenenever login entries stored in the password |
1277 // store are changed. The detail of this notification is a list of changes | 1277 // store are changed. The detail of this notification is a list of changes |
1278 // represented by a vector of PasswordStoreChange. Each change includes a | 1278 // represented by a vector of PasswordStoreChange. Each change includes a |
1279 // change type (ADD, UPDATE, or REMOVE) as well as the | 1279 // change type (ADD, UPDATE, or REMOVE) as well as the |
1280 // |webkit_glue::PasswordForm|s that were affected. | 1280 // |webkit_glue::PasswordForm|s that were affected. |
1281 LOGINS_CHANGED, | 1281 LOGINS_CHANGED, |
1282 | 1282 |
1283 // Sent when the applications in the NTP app launcher have been reordered. | 1283 // Sent when the applications in the NTP app launcher have been reordered. |
1284 EXTENSION_LAUNCHER_REORDERED, | 1284 EXTENSION_LAUNCHER_REORDERED, |
1285 | 1285 |
| 1286 #if defined(OS_CHROMEOS) |
| 1287 // Sent when WebSocketProxy started accepting connections. |
| 1288 WEB_SOCKET_PROXY_STARTED, |
| 1289 #endif |
| 1290 |
1286 // Sent when a new web store promo has been loaded. | 1291 // Sent when a new web store promo has been loaded. |
1287 WEB_STORE_PROMO_LOADED, | 1292 WEB_STORE_PROMO_LOADED, |
1288 | 1293 |
1289 // Count (must be last) ---------------------------------------------------- | 1294 // Count (must be last) ---------------------------------------------------- |
1290 // Used to determine the number of notification types. Not valid as | 1295 // Used to determine the number of notification types. Not valid as |
1291 // a type parameter when registering for or posting notifications. | 1296 // a type parameter when registering for or posting notifications. |
1292 NOTIFICATION_TYPE_COUNT | 1297 NOTIFICATION_TYPE_COUNT |
1293 }; | 1298 }; |
1294 | 1299 |
1295 // TODO(erg): Our notification system relies on implicit conversion. | 1300 // TODO(erg): Our notification system relies on implicit conversion. |
(...skipping 10 matching lines...) Expand all Loading... |
1306 }; | 1311 }; |
1307 | 1312 |
1308 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1313 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1309 return a == b.value; | 1314 return a == b.value; |
1310 } | 1315 } |
1311 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1316 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1312 return a != b.value; | 1317 return a != b.value; |
1313 } | 1318 } |
1314 | 1319 |
1315 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1320 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |