| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This file describes various types used to describe and filter notifications | 5 // This file describes various types used to describe and filter notifications |
| 6 // that pass through the NotificationService. | 6 // that pass through the NotificationService. |
| 7 | 7 |
| 8 #ifndef CHROME_COMMON_NOTIFICATION_TYPES_H__ | 8 #ifndef CHROME_COMMON_NOTIFICATION_TYPES_H__ |
| 9 #define CHROME_COMMON_NOTIFICATION_TYPES_H__ | 9 #define CHROME_COMMON_NOTIFICATION_TYPES_H__ |
| 10 | 10 |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // No details are expected. | 193 // No details are expected. |
| 194 NOTIFY_WEB_CONTENTS_SWAPPED, | 194 NOTIFY_WEB_CONTENTS_SWAPPED, |
| 195 | 195 |
| 196 // This message is sent after a WebContents is disconnected from the | 196 // This message is sent after a WebContents is disconnected from the |
| 197 // renderer process. | 197 // renderer process. |
| 198 // The source is a Source<WebContents> with a pointer to the WebContents | 198 // The source is a Source<WebContents> with a pointer to the WebContents |
| 199 // (the pointer is usable). | 199 // (the pointer is usable). |
| 200 // No details are expected. | 200 // No details are expected. |
| 201 NOTIFY_WEB_CONTENTS_DISCONNECTED, | 201 NOTIFY_WEB_CONTENTS_DISCONNECTED, |
| 202 | 202 |
| 203 // This message is sent when a new message is added to a WebContents. The | 203 // This message is sent when a new InfoBar is added to a TabContents. The |
| 204 // source is a Source<WebContents> with a pointer to the WebContents the | 204 // source is a Source<TabContents> with a pointer to the TabContents the |
| 205 // message was added to. | 205 // InfoBar was added to. The details is a Details<InfoBarDelegate> with a |
| 206 NOTIFY_WEB_CONTENTS_MESSAGE_ADDED, | 206 // pointer to an object implementing the InfoBarDelegate interface for the |
| 207 // InfoBar that was added. |
| 208 NOTIFY_TAB_CONTENTS_INFOBAR_ADDED, |
| 207 | 209 |
| 208 // This message is sent when a message is removed from a WebContents. The | 210 // This message is sent when an InfoBar is removed from a TabContents. The |
| 209 // source is a Source<WebContents> with a pointer to the WebContents the | 211 // source is a Source<TabContents> with a pointer to the TabContents the |
| 210 // message was removed from. | 212 // InfoBar was removed from. The details is a Details<InfoBarDelegate> with a |
| 211 NOTIFY_WEB_CONTENTS_MESSAGE_REMOVED, | 213 // pointer to an object implementing the InfoBarDelegate interface for the |
| 214 // InfoBar that was removed. |
| 215 NOTIFY_TAB_CONTENTS_INFOBAR_REMOVED, |
| 212 | 216 |
| 213 // This is sent when an externally hosted tab is created. The details contain | 217 // This is sent when an externally hosted tab is created. The details contain |
| 214 // the ExternalTabContainer that contains the tab | 218 // the ExternalTabContainer that contains the tab |
| 215 NOTIFY_EXTERNAL_TAB_CREATED, | 219 NOTIFY_EXTERNAL_TAB_CREATED, |
| 216 | 220 |
| 217 // This is sent when an externally hosted tab is closed. | 221 // This is sent when an externally hosted tab is closed. |
| 218 // No details are expected. | 222 // No details are expected. |
| 219 NOTIFY_EXTERNAL_TAB_CLOSED, | 223 NOTIFY_EXTERNAL_TAB_CLOSED, |
| 220 | 224 |
| 221 // Indicates that the new page tab has finished loading. This is | 225 // Indicates that the new page tab has finished loading. This is |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 NOTIFY_NEW_USER_SCRIPTS, | 498 NOTIFY_NEW_USER_SCRIPTS, |
| 495 | 499 |
| 496 // Count (must be last) ------------------------------------------------------ | 500 // Count (must be last) ------------------------------------------------------ |
| 497 // Used to determine the number of notification types. Not valid as | 501 // Used to determine the number of notification types. Not valid as |
| 498 // a type parameter when registering for or posting notifications. | 502 // a type parameter when registering for or posting notifications. |
| 499 NOTIFICATION_TYPE_COUNT | 503 NOTIFICATION_TYPE_COUNT |
| 500 }; | 504 }; |
| 501 | 505 |
| 502 #endif // CHROME_COMMON_NOTIFICATION_TYPES_H__ | 506 #endif // CHROME_COMMON_NOTIFICATION_TYPES_H__ |
| 503 | 507 |
| OLD | NEW |