OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_CHROME_NOTIFICATION_TYPES_H_ | 5 #ifndef CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "content/public/browser/notification_types.h" | 9 #include "content/public/browser/notification_types.h" |
10 | 10 |
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 | 883 |
884 // Misc -------------------------------------------------------------------- | 884 // Misc -------------------------------------------------------------------- |
885 | 885 |
886 // Sent when PerformanceMonitor has finished all the initial steps of data | 886 // Sent when PerformanceMonitor has finished all the initial steps of data |
887 // collection and has begun passively observing. The source is the | 887 // collection and has begun passively observing. The source is the |
888 // PerformanceMonitor*. No details are expected. | 888 // PerformanceMonitor*. No details are expected. |
889 NOTIFICATION_PERFORMANCE_MONITOR_INITIALIZED, | 889 NOTIFICATION_PERFORMANCE_MONITOR_INITIALIZED, |
890 | 890 |
891 #if defined(OS_CHROMEOS) | 891 #if defined(OS_CHROMEOS) |
892 // Sent when a chromium os user logs in. | 892 // Sent when a chromium os user logs in. |
| 893 // The details are a chromeos::User object. |
893 NOTIFICATION_LOGIN_USER_CHANGED, | 894 NOTIFICATION_LOGIN_USER_CHANGED, |
894 | 895 |
| 896 // Sent when a chromium os active user has changed. |
| 897 // The details are a chromeos::User object. |
| 898 // This notification is _not_ sent when user logs in to a new or existing |
| 899 // session because NOTIFICATION_LOGIN_USER_CHANGED is sent instead. |
| 900 NOTIFICATION_ACTIVE_USER_CHANGED, |
| 901 |
895 // Sent immediately after the logged-in user's profile is ready. | 902 // Sent immediately after the logged-in user's profile is ready. |
896 // The details are a Profile object. | 903 // The details are a Profile object. |
897 NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, | 904 NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, |
898 | 905 |
899 // Sent when the chromium session is first started. If this is a new user this | 906 // Sent when the chromium session of a particular user is started. |
900 // will not be sent until a profile picture has been selected, unlike | 907 // If this is a new user on the machine this will not be sent until a profile |
901 // NOTIFICATION_LOGIN_USER_CHANGED which is sent immediately after the user | 908 // picture has been selected, unlike NOTIFICATION_LOGIN_USER_CHANGED which is |
902 // has logged in. This will be sent again if the browser crashes and restarts. | 909 // sent immediately after the user has logged in. This will be sent again if |
| 910 // the browser crashes and restarts. |
| 911 // The details are a chromeos::User object. |
903 NOTIFICATION_SESSION_STARTED, | 912 NOTIFICATION_SESSION_STARTED, |
904 | 913 |
905 // Sent when user image is updated. | 914 // Sent when user image is updated. |
906 NOTIFICATION_LOGIN_USER_IMAGE_CHANGED, | 915 NOTIFICATION_LOGIN_USER_IMAGE_CHANGED, |
907 | 916 |
908 // Sent by UserManager when a profile image download has been completed. | 917 // Sent by UserManager when a profile image download has been completed. |
909 NOTIFICATION_PROFILE_IMAGE_UPDATED, | 918 NOTIFICATION_PROFILE_IMAGE_UPDATED, |
910 | 919 |
911 // Sent by UserManager when profile image download has failed or user has the | 920 // Sent by UserManager when profile image download has failed or user has the |
912 // default profile image or no profile image at all. No details are expected. | 921 // default profile image or no profile image at all. No details are expected. |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1220 // Note:- | 1229 // Note:- |
1221 // Currently only Content and Chrome define and use notifications. | 1230 // Currently only Content and Chrome define and use notifications. |
1222 // Custom notifications not belonging to Content and Chrome should start | 1231 // Custom notifications not belonging to Content and Chrome should start |
1223 // from here. | 1232 // from here. |
1224 NOTIFICATION_CHROME_END, | 1233 NOTIFICATION_CHROME_END, |
1225 }; | 1234 }; |
1226 | 1235 |
1227 } // namespace chrome | 1236 } // namespace chrome |
1228 | 1237 |
1229 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1238 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
OLD | NEW |