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 | 9 |
10 #if defined(ENABLE_EXTENSIONS) | 10 #if defined(ENABLE_EXTENSIONS) |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // browsers have closed. This is sent if the user chooses to exit (via exit | 117 // browsers have closed. This is sent if the user chooses to exit (via exit |
118 // menu item or keyboard shortcut) or to restart the process (such as in flags | 118 // menu item or keyboard shortcut) or to restart the process (such as in flags |
119 // page), not if Chrome exits by some other means (such as the user closing | 119 // page), not if Chrome exits by some other means (such as the user closing |
120 // the last window). No source or details are passed. | 120 // the last window). No source or details are passed. |
121 // | 121 // |
122 // Note that receiving this notification does not necessarily mean the process | 122 // Note that receiving this notification does not necessarily mean the process |
123 // will exit because the shutdown process can be cancelled by an unload | 123 // will exit because the shutdown process can be cancelled by an unload |
124 // handler. Use APP_TERMINATING for such needs. | 124 // handler. Use APP_TERMINATING for such needs. |
125 NOTIFICATION_CLOSE_ALL_BROWSERS_REQUEST, | 125 NOTIFICATION_CLOSE_ALL_BROWSERS_REQUEST, |
126 | 126 |
127 // Application-modal dialogs ----------------------------------------------- | |
128 | |
129 // Sent after an application-modal dialog has been shown. The source | |
130 // is the dialog. | |
131 NOTIFICATION_APP_MODAL_DIALOG_SHOWN, | |
132 | |
133 // This message is sent when a new InfoBar has been added to an | 127 // This message is sent when a new InfoBar has been added to an |
134 // InfoBarService. The source is a Source<InfoBarService> with a pointer to | 128 // InfoBarService. The source is a Source<InfoBarService> with a pointer to |
135 // the InfoBarService the InfoBar was added to. The details is a | 129 // the InfoBarService the InfoBar was added to. The details is a |
136 // Details<InfoBar::AddedDetails>. | 130 // Details<InfoBar::AddedDetails>. |
137 NOTIFICATION_TAB_CONTENTS_INFOBAR_ADDED, | 131 NOTIFICATION_TAB_CONTENTS_INFOBAR_ADDED, |
138 | 132 |
139 // This message is sent when an InfoBar is about to be removed from an | 133 // This message is sent when an InfoBar is about to be removed from an |
140 // InfoBarService. The source is a Source<InfoBarService> with a pointer to | 134 // InfoBarService. The source is a Source<InfoBarService> with a pointer to |
141 // the InfoBarService the InfoBar was removed from. The details is a | 135 // the InfoBarService the InfoBar was removed from. The details is a |
142 // Details<InfoBar::RemovedDetails>. | 136 // Details<InfoBar::RemovedDetails>. |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 // Note:- | 683 // Note:- |
690 // Currently only Content and Chrome define and use notifications. | 684 // Currently only Content and Chrome define and use notifications. |
691 // Custom notifications not belonging to Content and Chrome should start | 685 // Custom notifications not belonging to Content and Chrome should start |
692 // from here. | 686 // from here. |
693 NOTIFICATION_CHROME_END, | 687 NOTIFICATION_CHROME_END, |
694 }; | 688 }; |
695 | 689 |
696 } // namespace chrome | 690 } // namespace chrome |
697 | 691 |
698 #endif // CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 692 #endif // CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
OLD | NEW |