| 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_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 5 #ifndef CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
| 6 #define CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 6 #define CHROME_BROWSER_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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 // Application-modal dialogs ----------------------------------------------- | 116 // Application-modal dialogs ----------------------------------------------- |
| 117 | 117 |
| 118 // Sent after an application-modal dialog has been shown. The source | 118 // Sent after an application-modal dialog has been shown. The source |
| 119 // is the dialog. | 119 // is the dialog. |
| 120 NOTIFICATION_APP_MODAL_DIALOG_SHOWN, | 120 NOTIFICATION_APP_MODAL_DIALOG_SHOWN, |
| 121 | 121 |
| 122 // This message is sent when a new InfoBar has been added to an | 122 // This message is sent when a new InfoBar has been added to an |
| 123 // InfoBarService. The source is a Source<InfoBarService> with a pointer to | 123 // InfoBarService. The source is a Source<InfoBarService> with a pointer to |
| 124 // the InfoBarService the InfoBar was added to. The details is a | 124 // the InfoBarService the InfoBar was added to. The details is a |
| 125 // Details<InfoBarDelegate> with a pointer to the delegate that was added. | 125 // Details<InfoBar::AddedDetails>. |
| 126 NOTIFICATION_TAB_CONTENTS_INFOBAR_ADDED, | 126 NOTIFICATION_TAB_CONTENTS_INFOBAR_ADDED, |
| 127 | 127 |
| 128 // This message is sent when an InfoBar is about to be removed from an | 128 // This message is sent when an InfoBar is about to be removed from an |
| 129 // InfoBarService. The source is a Source<InfoBarService> with a pointer to | 129 // InfoBarService. The source is a Source<InfoBarService> with a pointer to |
| 130 // the InfoBarService the InfoBar was removed from. The details is a | 130 // the InfoBarService the InfoBar was removed from. The details is a |
| 131 // Details<std::pair<InfoBarDelegate*, bool> > with a pointer to the removed | 131 // Details<InfoBar::RemovedDetails>. |
| 132 // delegate and whether the removal should be animated. | |
| 133 NOTIFICATION_TAB_CONTENTS_INFOBAR_REMOVED, | 132 NOTIFICATION_TAB_CONTENTS_INFOBAR_REMOVED, |
| 134 | 133 |
| 135 // This message is sent when an InfoBar is replacing another infobar in an | 134 // This message is sent when an InfoBar is replacing another infobar in an |
| 136 // InfoBarService. The source is a Source<InfoBarService> with a pointer to | 135 // InfoBarService. The source is a Source<InfoBarService> with a pointer to |
| 137 // the InfoBarService the InfoBar was removed from. The details is a | 136 // the InfoBarService the InfoBar was removed from. The details is a |
| 138 // Details<std::pair<InfoBarDelegate*, InfoBarDelegate*> > with pointers to | 137 // Details<InfoBar::ReplacedDetails>. |
| 139 // the old and new delegates, respectively. | |
| 140 NOTIFICATION_TAB_CONTENTS_INFOBAR_REPLACED, | 138 NOTIFICATION_TAB_CONTENTS_INFOBAR_REPLACED, |
| 141 | 139 |
| 142 // This is sent when an externally hosted tab is closed. No details are | 140 // This is sent when an externally hosted tab is closed. No details are |
| 143 // expected. | 141 // expected. |
| 144 NOTIFICATION_EXTERNAL_TAB_CLOSED, | 142 NOTIFICATION_EXTERNAL_TAB_CLOSED, |
| 145 | 143 |
| 146 // Indicates that the new page tab has finished loading. This is used for | 144 // Indicates that the new page tab has finished loading. This is used for |
| 147 // performance testing to see how fast we can load it after startup, and is | 145 // performance testing to see how fast we can load it after startup, and is |
| 148 // only called once for the lifetime of the browser. The source is unused. | 146 // only called once for the lifetime of the browser. The source is unused. |
| 149 // Details is an integer: the number of milliseconds elapsed between | 147 // Details is an integer: the number of milliseconds elapsed between |
| (...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1054 // Note:- | 1052 // Note:- |
| 1055 // Currently only Content and Chrome define and use notifications. | 1053 // Currently only Content and Chrome define and use notifications. |
| 1056 // Custom notifications not belonging to Content and Chrome should start | 1054 // Custom notifications not belonging to Content and Chrome should start |
| 1057 // from here. | 1055 // from here. |
| 1058 NOTIFICATION_CHROME_END, | 1056 NOTIFICATION_CHROME_END, |
| 1059 }; | 1057 }; |
| 1060 | 1058 |
| 1061 } // namespace chrome | 1059 } // namespace chrome |
| 1062 | 1060 |
| 1063 #endif // CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 1061 #endif // CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
| OLD | NEW |