| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // browsers have closed. This is sent if the user chooses to exit | 184 // browsers have closed. This is sent if the user chooses to exit |
| 185 // (via exit menu item or keyboard shortcut) or to restart the process | 185 // (via exit menu item or keyboard shortcut) or to restart the process |
| 186 // (such as in flags page), not if Chrome exists by some other means | 186 // (such as in flags page), not if Chrome exists by some other means |
| 187 // (such as the user closing the last window). Note that receiving this | 187 // (such as the user closing the last window). Note that receiving this |
| 188 // notification does not necessarily mean the process will exit | 188 // notification does not necessarily mean the process will exit |
| 189 // because the shutdown process can be cancelled by unload handler. | 189 // because the shutdown process can be cancelled by unload handler. |
| 190 // Use APP_TERMINATING for such needs. | 190 // Use APP_TERMINATING for such needs. |
| 191 // The source and details are unspecified. | 191 // The source and details are unspecified. |
| 192 NOTIFICATION_APP_EXITING, | 192 NOTIFICATION_APP_EXITING, |
| 193 | 193 |
| 194 // Indicates that a devtools window is opening. The source is the |
| 195 // content::BrowserContext* and the details is the inspected RenderViewHost*. |
| 196 NOTIFICATION_DEVTOOLS_WINDOW_OPENING, |
| 197 |
| 194 // Indicates that a devtools window is closing. The source is the | 198 // Indicates that a devtools window is closing. The source is the |
| 195 // content::BrowserContext* and the details is the inspected RenderViewHost*. | 199 // content::BrowserContext* and the details is the inspected RenderViewHost*. |
| 196 NOTIFICATION_DEVTOOLS_WINDOW_CLOSING, | 200 NOTIFICATION_DEVTOOLS_WINDOW_CLOSING, |
| 197 | 201 |
| 198 // Tabs -------------------------------------------------------------------- | 202 // Tabs -------------------------------------------------------------------- |
| 199 | 203 |
| 200 // Sent when a tab is added to a WebContentsDelegate. The source is the | 204 // Sent when a tab is added to a WebContentsDelegate. The source is the |
| 201 // WebContentsDelegate and the details is the added content::WebContents. | 205 // WebContentsDelegate and the details is the added content::WebContents. |
| 202 NOTIFICATION_TAB_ADDED, | 206 NOTIFICATION_TAB_ADDED, |
| 203 | 207 |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 // of a temporary zoom level change, the details is an empty string. | 416 // of a temporary zoom level change, the details is an empty string. |
| 413 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 417 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
| 414 | 418 |
| 415 // Custom notifications used by the embedder should start from here. | 419 // Custom notifications used by the embedder should start from here. |
| 416 NOTIFICATION_CONTENT_END, | 420 NOTIFICATION_CONTENT_END, |
| 417 }; | 421 }; |
| 418 | 422 |
| 419 } // namespace content | 423 } // namespace content |
| 420 | 424 |
| 421 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 425 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
| OLD | NEW |