| 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_PUBLIC_BROWSER_NOTIFICATION_TYPE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // browsers have closed. This is sent if the user chooses to exit | 198 // browsers have closed. This is sent if the user chooses to exit |
| 199 // (via exit menu item or keyboard shortcut) or to restart the process | 199 // (via exit menu item or keyboard shortcut) or to restart the process |
| 200 // (such as in flags page), not if Chrome exists by some other means | 200 // (such as in flags page), not if Chrome exists by some other means |
| 201 // (such as the user closing the last window). Note that receiving this | 201 // (such as the user closing the last window). Note that receiving this |
| 202 // notification does not necessarily mean the process will exit | 202 // notification does not necessarily mean the process will exit |
| 203 // because the shutdown process can be cancelled by unload handler. | 203 // because the shutdown process can be cancelled by unload handler. |
| 204 // Use APP_TERMINATING for such needs. | 204 // Use APP_TERMINATING for such needs. |
| 205 // The source and details are unspecified. | 205 // The source and details are unspecified. |
| 206 NOTIFICATION_APP_EXITING, | 206 NOTIFICATION_APP_EXITING, |
| 207 | 207 |
| 208 NOTIFICATION_MAIN_MESSAGE_LOOP_EXITING, |
| 209 |
| 208 // Indicates that a devtools window is closing. The source is the | 210 // Indicates that a devtools window is closing. The source is the |
| 209 // content::BrowserContext* and the details is the inspected RenderViewHost*. | 211 // content::BrowserContext* and the details is the inspected RenderViewHost*. |
| 210 NOTIFICATION_DEVTOOLS_WINDOW_CLOSING, | 212 NOTIFICATION_DEVTOOLS_WINDOW_CLOSING, |
| 211 | 213 |
| 212 // Tabs -------------------------------------------------------------------- | 214 // Tabs -------------------------------------------------------------------- |
| 213 | 215 |
| 214 // Sent when a tab is added to a TabContentsDelegate. The source is the | 216 // Sent when a tab is added to a TabContentsDelegate. The source is the |
| 215 // TabContentsDelegate and the details is the added TabContents. | 217 // TabContentsDelegate and the details is the added TabContents. |
| 216 NOTIFICATION_TAB_ADDED, | 218 NOTIFICATION_TAB_ADDED, |
| 217 | 219 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 // of a temporary zoom level change, the details is an empty string. | 439 // of a temporary zoom level change, the details is an empty string. |
| 438 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 440 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
| 439 | 441 |
| 440 // Custom notifications used by the embedder should start from here. | 442 // Custom notifications used by the embedder should start from here. |
| 441 NOTIFICATION_CONTENT_END, | 443 NOTIFICATION_CONTENT_END, |
| 442 }; | 444 }; |
| 443 | 445 |
| 444 } // namespace content | 446 } // namespace content |
| 445 | 447 |
| 446 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPE_H_ | 448 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPE_H_ |
| OLD | NEW |