OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "content/public/browser/notification_types.h" | 9 #include "content/public/browser/notification_types.h" |
10 | 10 |
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
863 | 863 |
864 // Sent when a user fails to sign into Google services such as sync. | 864 // Sent when a user fails to sign into Google services such as sync. |
865 // The source is the Profile. The details are a GoogleServiceAuthError | 865 // The source is the Profile. The details are a GoogleServiceAuthError |
866 // object. | 866 // object. |
867 NOTIFICATION_GOOGLE_SIGNIN_FAILED, | 867 NOTIFICATION_GOOGLE_SIGNIN_FAILED, |
868 | 868 |
869 // Sent when the currently signed-in user for a user has been signed out. | 869 // Sent when the currently signed-in user for a user has been signed out. |
870 // The source is the Profile. There are no details. | 870 // The source is the Profile. There are no details. |
871 NOTIFICATION_GOOGLE_SIGNED_OUT, | 871 NOTIFICATION_GOOGLE_SIGNED_OUT, |
872 | 872 |
873 // Sent when a login UI state changes: when new login UI is shown or when | |
874 // login UI is closed. | |
875 NOTIFICATION_LOGIN_UI_CHANGED, | |
jam
2012/07/03 05:52:27
who's listening to this notification?
Munjal (Google)
2012/07/03 17:52:17
The listening code is coming up in the next patch.
jam
2012/07/04 04:25:21
can we keep the notification until that patch then
Munjal (Google)
2012/07/09 17:30:06
I uploaded the patch that uses the notification. S
jam
2012/07/09 17:35:53
given that there's only one place that listens to
Munjal (Google)
2012/07/09 19:24:59
The main reason is to simplify lifetime management
jam
2012/07/09 19:38:13
Given that LoginUIService is a profile keyed servi
Munjal (Google)
2012/07/09 19:48:54
Yeah, LoginUIService is okay. You are right.
But
jam
2012/07/09 21:02:50
This is a common pattern, and we have ObserverList
| |
876 | |
873 // Autofill Notifications -------------------------------------------------- | 877 // Autofill Notifications -------------------------------------------------- |
874 | 878 |
875 // Sent when a popup with Autofill suggestions is shown in the renderer. | 879 // Sent when a popup with Autofill suggestions is shown in the renderer. |
876 // The source is the corresponding RenderViewHost. There are not details. | 880 // The source is the corresponding RenderViewHost. There are not details. |
877 NOTIFICATION_AUTOFILL_DID_SHOW_SUGGESTIONS, | 881 NOTIFICATION_AUTOFILL_DID_SHOW_SUGGESTIONS, |
878 | 882 |
879 // Sent when a form is previewed or filled with Autofill suggestions. | 883 // Sent when a form is previewed or filled with Autofill suggestions. |
880 // The source is the corresponding RenderViewHost. There are not details. | 884 // The source is the corresponding RenderViewHost. There are not details. |
881 NOTIFICATION_AUTOFILL_DID_FILL_FORM_DATA, | 885 NOTIFICATION_AUTOFILL_DID_FILL_FORM_DATA, |
882 | 886 |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1183 // Currently only Content and Chrome define and use notifications. | 1187 // Currently only Content and Chrome define and use notifications. |
1184 // Custom notifications not belonging to Content and Chrome should start | 1188 // Custom notifications not belonging to Content and Chrome should start |
1185 // from here. | 1189 // from here. |
1186 NOTIFICATION_CHROME_END, | 1190 NOTIFICATION_CHROME_END, |
1187 }; | 1191 }; |
1188 | 1192 |
1189 } // namespace chrome | 1193 } // namespace chrome |
1190 | 1194 |
1191 | 1195 |
1192 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1196 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
OLD | NEW |