OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_COMMON_NOTIFICATION_TYPE_H_ | 5 #ifndef CHROME_COMMON_NOTIFICATION_TYPE_H_ |
6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ | 6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ |
7 | 7 |
8 // This file describes various types used to describe and filter notifications | 8 // This file describes various types used to describe and filter notifications |
9 // that pass through the NotificationService. | 9 // that pass through the NotificationService. |
10 // | 10 // |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // Sent after an application-modal dialog has been shown. The source | 224 // Sent after an application-modal dialog has been shown. The source |
225 // is the dialog. | 225 // is the dialog. |
226 APP_MODAL_DIALOG_SHOWN, | 226 APP_MODAL_DIALOG_SHOWN, |
227 | 227 |
228 // Sent after an application-modal dialog has been closed. The source | 228 // Sent after an application-modal dialog has been closed. The source |
229 // is the dialog. | 229 // is the dialog. |
230 APP_MODAL_DIALOG_CLOSED, | 230 APP_MODAL_DIALOG_CLOSED, |
231 | 231 |
232 // Tabs -------------------------------------------------------------------- | 232 // Tabs -------------------------------------------------------------------- |
233 | 233 |
| 234 // Sent when a tab is added to a TabContentsDelegate. The source is the |
| 235 // TabContentsDelegate and the details is the TabContents. |
| 236 TAB_ADDED, |
| 237 |
234 // This notification is sent after a tab has been appended to the | 238 // This notification is sent after a tab has been appended to the |
235 // tab_strip. The source is a Source<NavigationController> with a pointer | 239 // tab_strip. The source is a Source<NavigationController> with a pointer |
236 // to controller for the added tab. There are no details. | 240 // to controller for the added tab. There are no details. |
237 TAB_PARENTED, | 241 TAB_PARENTED, |
238 | 242 |
239 // This message is sent before a tab has been closed. The source is a | 243 // This message is sent before a tab has been closed. The source is a |
240 // Source<NavigationController> with a pointer to the controller for the | 244 // Source<NavigationController> with a pointer to the controller for the |
241 // closed tab. No details are expected. | 245 // closed tab. No details are expected. |
242 // | 246 // |
243 // See also TAB_CLOSED. | 247 // See also TAB_CLOSED. |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 }; | 700 }; |
697 | 701 |
698 inline bool operator==(NotificationType::Type a, NotificationType b) { | 702 inline bool operator==(NotificationType::Type a, NotificationType b) { |
699 return a == b.value; | 703 return a == b.value; |
700 } | 704 } |
701 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 705 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
702 return a != b.value; | 706 return a != b.value; |
703 } | 707 } |
704 | 708 |
705 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 709 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |