Chromium Code Reviews| 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 | 7 |
| 8 // This file describes various types used to describe and filter notifications | 8 // This file describes various types used to describe and filter notifications |
| 9 // that pass through the NotificationService. | 9 // that pass through the NotificationService. |
| 10 // | 10 // |
| (...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 980 | 980 |
| 981 // The sync service is finished the configuration process. | 981 // The sync service is finished the configuration process. |
| 982 SYNC_CONFIGURE_DONE, | 982 SYNC_CONFIGURE_DONE, |
| 983 | 983 |
| 984 // Cookies ----------------------------------------------------------------- | 984 // Cookies ----------------------------------------------------------------- |
| 985 | 985 |
| 986 // Sent when a cookie changes. The source is a Profile object, the details | 986 // Sent when a cookie changes. The source is a Profile object, the details |
| 987 // are a ChromeCookieDetails object. | 987 // are a ChromeCookieDetails object. |
| 988 COOKIE_CHANGED, | 988 COOKIE_CHANGED, |
| 989 | 989 |
| 990 // Misc -------------------------------------------------------------------- | |
| 991 | |
| 990 #if defined(OS_CHROMEOS) | 992 #if defined(OS_CHROMEOS) |
| 991 // Sent when a chromium os user logs in. | 993 // Sent when a chromium os user logs in. |
| 992 LOGIN_USER_CHANGED, | 994 LOGIN_USER_CHANGED, |
| 993 | 995 |
| 994 // Sent when user image is updated. | 996 // Sent when user image is updated. |
| 995 LOGIN_USER_IMAGE_CHANGED, | 997 LOGIN_USER_IMAGE_CHANGED, |
| 996 | 998 |
| 997 // Sent when a chromium os user attempts to log in. The source is | 999 // Sent when a chromium os user attempts to log in. The source is |
| 998 // all and the details are AuthenticationNotificationDetails. | 1000 // all and the details are AuthenticationNotificationDetails. |
| 999 LOGIN_AUTHENTICATION, | 1001 LOGIN_AUTHENTICATION, |
| 1000 | 1002 |
| 1001 // Sent when a panel state changed. | 1003 // Sent when a panel state changed. |
| 1002 PANEL_STATE_CHANGED, | 1004 PANEL_STATE_CHANGED, |
| 1003 | 1005 |
| 1004 // Sent when the wizard's content view is destroyed. The source and details | 1006 // Sent when the wizard's content view is destroyed. The source and details |
| 1005 // are not used. | 1007 // are not used. |
| 1006 WIZARD_CONTENT_VIEW_DESTROYED, | 1008 WIZARD_CONTENT_VIEW_DESTROYED, |
| 1007 #endif | 1009 #endif |
| 1008 | 1010 |
| 1009 // Sent before the repost form warning is brought up. | 1011 // Sent before the repost form warning is brought up. |
| 1010 // The source is a NavigationController. | 1012 // The source is a NavigationController. |
| 1011 REPOST_WARNING_SHOWN, | 1013 REPOST_WARNING_SHOWN, |
| 1012 | 1014 |
| 1013 #if defined(TOOLKIT_VIEWS) | 1015 #if defined(TOOLKIT_VIEWS) |
| 1014 // Sent when a bookmark's context menu is shown. Used to notify | 1016 // Sent when a bookmark's context menu is shown. Used to notify |
| 1015 // tests that the context menu has been created and shown. | 1017 // tests that the context menu has been created and shown. |
| 1016 BOOKMARK_CONTEXT_MENU_SHOWN, | 1018 BOOKMARK_CONTEXT_MENU_SHOWN, |
| 1017 #endif | 1019 #endif |
| 1018 | 1020 |
| 1021 // Sent when the zoom level changes. The source is the profile, details the | |
| 1022 // host as a std::string. | |
|
Peter Kasting
2010/06/08 17:54:00
Nit: You should probably give more detail here as
| |
| 1023 ZOOM_LEVEL_CHANGED, | |
| 1024 | |
| 1019 // Password Store ---------------------------------------------------------- | 1025 // Password Store ---------------------------------------------------------- |
| 1020 // This notification is sent whenenever login entries stored in the password | 1026 // This notification is sent whenenever login entries stored in the password |
| 1021 // store are changed. The detail of this notification is a list of changes | 1027 // store are changed. The detail of this notification is a list of changes |
| 1022 // represented by a vector of PasswordStoreChange. Each change includes a | 1028 // represented by a vector of PasswordStoreChange. Each change includes a |
| 1023 // change type (ADD, UPDATE, or REMOVE) as well as the | 1029 // change type (ADD, UPDATE, or REMOVE) as well as the |
| 1024 // |webkit_glue::PasswordForm|s that were affected. | 1030 // |webkit_glue::PasswordForm|s that were affected. |
| 1025 LOGINS_CHANGED, | 1031 LOGINS_CHANGED, |
| 1026 | 1032 |
| 1027 // Count (must be last) ---------------------------------------------------- | 1033 // Count (must be last) ---------------------------------------------------- |
| 1028 // Used to determine the number of notification types. Not valid as | 1034 // Used to determine the number of notification types. Not valid as |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 1044 }; | 1050 }; |
| 1045 | 1051 |
| 1046 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1052 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1047 return a == b.value; | 1053 return a == b.value; |
| 1048 } | 1054 } |
| 1049 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1055 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1050 return a != b.value; | 1056 return a != b.value; |
| 1051 } | 1057 } |
| 1052 | 1058 |
| 1053 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1059 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |