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 CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 5 #ifndef CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
6 #define CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 6 #define CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 // This file describes various types used to describe and filter notifications | 9 // This file describes various types used to describe and filter notifications |
10 // that pass through the NotificationService. | 10 // that pass through the NotificationService. |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 // browsers have closed. This is sent if the user chooses to exit | 207 // browsers have closed. This is sent if the user chooses to exit |
208 // (via exit menu item or keyboard shortcut) or to restart the process | 208 // (via exit menu item or keyboard shortcut) or to restart the process |
209 // (such as in flags page), not if Chrome exists by some other means | 209 // (such as in flags page), not if Chrome exists by some other means |
210 // (such as the user closing the last window). Note that receiving this | 210 // (such as the user closing the last window). Note that receiving this |
211 // notification does not necessarily mean the process will exit | 211 // notification does not necessarily mean the process will exit |
212 // because the shutdown process can be cancelled by unload handler. | 212 // because the shutdown process can be cancelled by unload handler. |
213 // Use APP_TERMINATING for such needs. | 213 // Use APP_TERMINATING for such needs. |
214 // The source and details are unspecified. | 214 // The source and details are unspecified. |
215 NOTIFICATION_APP_EXITING, | 215 NOTIFICATION_APP_EXITING, |
216 | 216 |
217 // Indicates that a devtools window is closing. The source is the Profile* | 217 // Indicates that a devtools window is closing. The source is the |
218 // and the details is the inspected RenderViewHost*. | 218 // content::BrowserContext* and the details is the inspected RenderViewHost*. |
219 NOTIFICATION_DEVTOOLS_WINDOW_CLOSING, | 219 NOTIFICATION_DEVTOOLS_WINDOW_CLOSING, |
220 | 220 |
221 // Tabs -------------------------------------------------------------------- | 221 // Tabs -------------------------------------------------------------------- |
222 | 222 |
223 // Sent when a tab is added to a TabContentsDelegate. The source is the | 223 // Sent when a tab is added to a TabContentsDelegate. The source is the |
224 // TabContentsDelegate and the details is the added TabContents. | 224 // TabContentsDelegate and the details is the added TabContents. |
225 NOTIFICATION_TAB_ADDED, | 225 NOTIFICATION_TAB_ADDED, |
226 | 226 |
227 // This notification is sent after a tab has been appended to the tab_strip. | 227 // This notification is sent after a tab has been appended to the tab_strip. |
228 // The source is a Source<TabContentsWrapper> of the tab being added. There | 228 // The source is a Source<TabContentsWrapper> of the tab being added. There |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 // of a temporary zoom level change, the details is an empty string. | 458 // of a temporary zoom level change, the details is an empty string. |
459 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 459 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
460 | 460 |
461 // Custom notifications used by the embedder should start from here. | 461 // Custom notifications used by the embedder should start from here. |
462 NOTIFICATION_CONTENT_END, | 462 NOTIFICATION_CONTENT_END, |
463 }; | 463 }; |
464 | 464 |
465 } // namespace content | 465 } // namespace content |
466 | 466 |
467 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 467 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |