| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 NOTIFICATION_APP_EXITING, | 179 NOTIFICATION_APP_EXITING, |
| 180 | 180 |
| 181 // Indicates that a devtools window is opening. The source is the | 181 // Indicates that a devtools window is opening. The source is the |
| 182 // BrowserContext* and the details is the inspected RenderViewHost*. | 182 // BrowserContext* and the details is the inspected RenderViewHost*. |
| 183 NOTIFICATION_DEVTOOLS_WINDOW_OPENING, | 183 NOTIFICATION_DEVTOOLS_WINDOW_OPENING, |
| 184 | 184 |
| 185 // Indicates that a devtools window is closing. The source is the | 185 // Indicates that a devtools window is closing. The source is the |
| 186 // BrowserContext* and the details is the inspected RenderViewHost*. | 186 // BrowserContext* and the details is the inspected RenderViewHost*. |
| 187 NOTIFICATION_DEVTOOLS_WINDOW_CLOSING, | 187 NOTIFICATION_DEVTOOLS_WINDOW_CLOSING, |
| 188 | 188 |
| 189 // Tabs -------------------------------------------------------------------- | 189 // WebContents --------------------------------------------------------------- |
| 190 | |
| 191 // Sent when a tab is added to a WebContentsDelegate. The source is the | |
| 192 // WebContentsDelegate and the details is the added WebContents. | |
| 193 NOTIFICATION_TAB_ADDED, | |
| 194 | |
| 195 // This notification is sent after a tab has been appended to the tab_strip. | |
| 196 // The source is a Source<TabContentsWrapper> of the tab being added. There | |
| 197 // are no details. | |
| 198 NOTIFICATION_TAB_PARENTED, | |
| 199 | |
| 200 // This message is sent before a tab has been closed. The source is a | |
| 201 // Source<NavigationController> with a pointer to the controller for the | |
| 202 // closed tab. No details are expected. | |
| 203 // | |
| 204 // See also TAB_CLOSED. | |
| 205 NOTIFICATION_TAB_CLOSING, | |
| 206 | |
| 207 // Notification that a tab has been closed. The source is the | |
| 208 // NavigationController with no details. | |
| 209 NOTIFICATION_TAB_CLOSED, | |
| 210 | 190 |
| 211 // This notification is sent when a render view host has connected to a | 191 // This notification is sent when a render view host has connected to a |
| 212 // renderer process. The source is a Source<WebContents> with a pointer to | 192 // renderer process. The source is a Source<WebContents> with a pointer to |
| 213 // the WebContents. A WEB_CONTENTS_DISCONNECTED notification is | 193 // the WebContents. A WEB_CONTENTS_DISCONNECTED notification is |
| 214 // guaranteed before the source pointer becomes junk. No details are | 194 // guaranteed before the source pointer becomes junk. No details are |
| 215 // expected. | 195 // expected. |
| 216 NOTIFICATION_WEB_CONTENTS_CONNECTED, | 196 NOTIFICATION_WEB_CONTENTS_CONNECTED, |
| 217 | 197 |
| 218 // This notification is sent when a TabContents swaps its render view host | 198 // This notification is sent when a TabContents swaps its render view host |
| 219 // with another one, possibly changing processes. The source is a | 199 // with another one, possibly changing processes. The source is a |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 // of a temporary zoom level change, the details is an empty string. | 382 // of a temporary zoom level change, the details is an empty string. |
| 403 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 383 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
| 404 | 384 |
| 405 // Custom notifications used by the embedder should start from here. | 385 // Custom notifications used by the embedder should start from here. |
| 406 NOTIFICATION_CONTENT_END, | 386 NOTIFICATION_CONTENT_END, |
| 407 }; | 387 }; |
| 408 | 388 |
| 409 } // namespace content | 389 } // namespace content |
| 410 | 390 |
| 411 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 391 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
| OLD | NEW |