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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 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 | 75 // dialog. The details is a Details<RenderViewHost> with a pointer to the RVH |
76 // for the shown dialog. | 76 // for the shown dialog. |
77 NOTIFICATION_HTML_DIALOG_SHOWN, | 77 NOTIFICATION_HTML_DIALOG_SHOWN, |
78 | 78 |
| 79 // A new tab is created from an existing tab to serve as a target of a |
| 80 // navigation that is about to happen. The source will be a Source<Profile> |
| 81 // corresponding to the profile in which the new tab will live. Details in |
| 82 // the form of a RetargetingDetails object are provided. |
| 83 NOTIFICATION_RETARGETING, |
| 84 |
79 // Application-modal dialogs ----------------------------------------------- | 85 // Application-modal dialogs ----------------------------------------------- |
80 | 86 |
81 // Sent after an application-modal dialog has been shown. The source | 87 // Sent after an application-modal dialog has been shown. The source |
82 // is the dialog. | 88 // is the dialog. |
83 NOTIFICATION_APP_MODAL_DIALOG_SHOWN, | 89 NOTIFICATION_APP_MODAL_DIALOG_SHOWN, |
84 | 90 |
85 // This message is sent when a new InfoBar has been added to a | 91 // This message is sent when a new InfoBar has been added to a |
86 // InfoBarTabHelper. The source is a Source<InfoBarTabHelper> with a | 92 // InfoBarTabHelper. The source is a Source<InfoBarTabHelper> with a |
87 // pointer to the InfoBarTabHelper the InfoBar was added to. The details | 93 // pointer to the InfoBarTabHelper the InfoBar was added to. The details |
88 // is a Details<InfoBarDelegate> with a pointer to the delegate that was | 94 // is a Details<InfoBarDelegate> with a pointer to the delegate that was |
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 // Currently only Content and Chrome define and use notifications. | 1000 // Currently only Content and Chrome define and use notifications. |
995 // Custom notifications not belonging to Content and Chrome should start | 1001 // Custom notifications not belonging to Content and Chrome should start |
996 // from here. | 1002 // from here. |
997 NOTIFICATION_CHROME_END, | 1003 NOTIFICATION_CHROME_END, |
998 }; | 1004 }; |
999 | 1005 |
1000 } // namespace chrome | 1006 } // namespace chrome |
1001 | 1007 |
1002 | 1008 |
1003 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1009 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
OLD | NEW |