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 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 NOTIFICATION_TAB_SNAPSHOT_TAKEN, | 64 NOTIFICATION_TAB_SNAPSHOT_TAKEN, |
65 | 65 |
66 // The user has changed the browser theme. The source is a | 66 // The user has changed the browser theme. The source is a |
67 // Source<ThemeService>. There are no details. | 67 // Source<ThemeService>. There are no details. |
68 NOTIFICATION_BROWSER_THEME_CHANGED, | 68 NOTIFICATION_BROWSER_THEME_CHANGED, |
69 | 69 |
70 // Sent when the renderer returns focus to the browser, as part of focus | 70 // Sent when the renderer returns focus to the browser, as part of focus |
71 // traversal. The source is the browser, there are no details. | 71 // traversal. The source is the browser, there are no details. |
72 NOTIFICATION_FOCUS_RETURNED_TO_BROWSER, | 72 NOTIFICATION_FOCUS_RETURNED_TO_BROWSER, |
73 | 73 |
74 // Sent after an HtmlDialog dialog has been shown. The source is the dialog. | 74 // Sent after an HtmlDialog dialog has been shown. The source is the |
| 75 // dialog. The details is a Details<RenderViewHost> with a pointer to the RVH |
| 76 // for the shown dialog. |
75 NOTIFICATION_HTML_DIALOG_SHOWN, | 77 NOTIFICATION_HTML_DIALOG_SHOWN, |
76 | 78 |
77 // Application-modal dialogs ----------------------------------------------- | 79 // Application-modal dialogs ----------------------------------------------- |
78 | 80 |
79 // Sent after an application-modal dialog has been shown. The source | 81 // Sent after an application-modal dialog has been shown. The source |
80 // is the dialog. | 82 // is the dialog. |
81 NOTIFICATION_APP_MODAL_DIALOG_SHOWN, | 83 NOTIFICATION_APP_MODAL_DIALOG_SHOWN, |
82 | 84 |
83 // This message is sent when a new InfoBar has been added to a | 85 // This message is sent when a new InfoBar has been added to a |
84 // InfoBarTabHelper. The source is a Source<InfoBarTabHelper> with a | 86 // InfoBarTabHelper. The source is a Source<InfoBarTabHelper> with a |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 // Currently only Content and Chrome define and use notifications. | 974 // Currently only Content and Chrome define and use notifications. |
973 // Custom notifications not belonging to Content and Chrome should start | 975 // Custom notifications not belonging to Content and Chrome should start |
974 // from here. | 976 // from here. |
975 NOTIFICATION_CHROME_END, | 977 NOTIFICATION_CHROME_END, |
976 }; | 978 }; |
977 | 979 |
978 } // namespace chrome | 980 } // namespace chrome |
979 | 981 |
980 | 982 |
981 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 983 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
OLD | NEW |