| 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 #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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // the InfoBar that was added. | 269 // the InfoBar that was added. |
| 270 TAB_CONTENTS_INFOBAR_ADDED, | 270 TAB_CONTENTS_INFOBAR_ADDED, |
| 271 | 271 |
| 272 // This message is sent when an InfoBar is about to be removed from a | 272 // This message is sent when an InfoBar is about to be removed from a |
| 273 // TabContents. The source is a Source<TabContents> with a pointer to the | 273 // TabContents. The source is a Source<TabContents> with a pointer to the |
| 274 // TabContents the InfoBar was removed from. The details is a | 274 // TabContents the InfoBar was removed from. The details is a |
| 275 // Details<InfoBarDelegate> with a pointer to an object implementing the | 275 // Details<InfoBarDelegate> with a pointer to an object implementing the |
| 276 // InfoBarDelegate interface for the InfoBar that was removed. | 276 // InfoBarDelegate interface for the InfoBar that was removed. |
| 277 TAB_CONTENTS_INFOBAR_REMOVED, | 277 TAB_CONTENTS_INFOBAR_REMOVED, |
| 278 | 278 |
| 279 // This message is sent when an InfoBar is replacing another infobar in a |
| 280 // TabContents. The source is a Source<TabContents> with a pointer to the |
| 281 // TabContents the InfoBar was removed from. The details is a |
| 282 // Details<std::pair<InfoBarDelegate*, InfoBarDelegate*> > with a pointer |
| 283 // to the old and new InfoBarDelegates, respectively. |
| 284 TAB_CONTENTS_INFOBAR_REPLACED, |
| 285 |
| 279 // This is sent when an externally hosted tab is created. The details | 286 // This is sent when an externally hosted tab is created. The details |
| 280 // contain the ExternalTabContainer that contains the tab | 287 // contain the ExternalTabContainer that contains the tab |
| 281 EXTERNAL_TAB_CREATED, | 288 EXTERNAL_TAB_CREATED, |
| 282 | 289 |
| 283 // This is sent when an externally hosted tab is closed. No details are | 290 // This is sent when an externally hosted tab is closed. No details are |
| 284 // expected. | 291 // expected. |
| 285 EXTERNAL_TAB_CLOSED, | 292 EXTERNAL_TAB_CLOSED, |
| 286 | 293 |
| 287 // Indicates that the new page tab has finished loading. This is used for | 294 // Indicates that the new page tab has finished loading. This is used for |
| 288 // performance testing to see how fast we can load it after startup, and is | 295 // performance testing to see how fast we can load it after startup, and is |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 }; | 639 }; |
| 633 | 640 |
| 634 inline bool operator==(NotificationType::Type a, NotificationType b) { | 641 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 635 return a == b.value; | 642 return a == b.value; |
| 636 } | 643 } |
| 637 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 644 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 638 return a != b.value; | 645 return a != b.value; |
| 639 } | 646 } |
| 640 | 647 |
| 641 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 648 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |