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 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
982 // Currently only Content and Chrome define and use notifications. | 984 // Currently only Content and Chrome define and use notifications. |
983 // Custom notifications not belonging to Content and Chrome should start | 985 // Custom notifications not belonging to Content and Chrome should start |
984 // from here. | 986 // from here. |
985 NOTIFICATION_CHROME_END, | 987 NOTIFICATION_CHROME_END, |
986 }; | 988 }; |
987 | 989 |
988 } // namespace chrome | 990 } // namespace chrome |
989 | 991 |
990 | 992 |
991 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 993 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
OLD | NEW |