| 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 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1080 // TODO(oshima): Port this to all platforms. | 1080 // TODO(oshima): Port this to all platforms. |
| 1081 NETWORK_STATE_CHANGED, | 1081 NETWORK_STATE_CHANGED, |
| 1082 | 1082 |
| 1083 // Sent when an attempt to acquire the public key of the owner of a chromium | 1083 // Sent when an attempt to acquire the public key of the owner of a chromium |
| 1084 // os device has succeeded. | 1084 // os device has succeeded. |
| 1085 OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED, | 1085 OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED, |
| 1086 | 1086 |
| 1087 // Sent when an attempt to acquire the public key of the owner of a chromium | 1087 // Sent when an attempt to acquire the public key of the owner of a chromium |
| 1088 // os device has failed. | 1088 // os device has failed. |
| 1089 OWNER_KEY_FETCH_ATTEMPT_FAILED, | 1089 OWNER_KEY_FETCH_ATTEMPT_FAILED, |
| 1090 |
| 1091 // This is sent to a ChromeOS settings observer when a system setting is |
| 1092 // changed. The source is the CrosSettings and the details a std::string of |
| 1093 // the changed setting. |
| 1094 SYSTEM_SETTING_CHANGED, |
| 1090 #endif | 1095 #endif |
| 1091 | 1096 |
| 1092 // Sent before the repost form warning is brought up. | 1097 // Sent before the repost form warning is brought up. |
| 1093 // The source is a NavigationController. | 1098 // The source is a NavigationController. |
| 1094 REPOST_WARNING_SHOWN, | 1099 REPOST_WARNING_SHOWN, |
| 1095 | 1100 |
| 1096 #if defined(TOOLKIT_VIEWS) | 1101 #if defined(TOOLKIT_VIEWS) |
| 1097 // Sent when a bookmark's context menu is shown. Used to notify | 1102 // Sent when a bookmark's context menu is shown. Used to notify |
| 1098 // tests that the context menu has been created and shown. | 1103 // tests that the context menu has been created and shown. |
| 1099 BOOKMARK_CONTEXT_MENU_SHOWN, | 1104 BOOKMARK_CONTEXT_MENU_SHOWN, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 }; | 1148 }; |
| 1144 | 1149 |
| 1145 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1150 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1146 return a == b.value; | 1151 return a == b.value; |
| 1147 } | 1152 } |
| 1148 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1153 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1149 return a != b.value; | 1154 return a != b.value; |
| 1150 } | 1155 } |
| 1151 | 1156 |
| 1152 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1157 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |