| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COMMON_NOTIFICATION_TYPE_H_ | 5 #ifndef CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 
| 6 #define CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 6 #define CONTENT_COMMON_NOTIFICATION_TYPE_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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 326     // This message is sent after a TabContents is disconnected from the | 326     // This message is sent after a TabContents is disconnected from the | 
| 327     // renderer process.  The source is a Source<TabContents> with a pointer to | 327     // renderer process.  The source is a Source<TabContents> with a pointer to | 
| 328     // the TabContents (the pointer is usable).  No details are expected. | 328     // the TabContents (the pointer is usable).  No details are expected. | 
| 329     TAB_CONTENTS_DISCONNECTED, | 329     TAB_CONTENTS_DISCONNECTED, | 
| 330 | 330 | 
| 331     // This notification is sent after TabContents' title is updated. The source | 331     // This notification is sent after TabContents' title is updated. The source | 
| 332     // is a Source<TabContents> with a pointer to the TabContents. The details | 332     // is a Source<TabContents> with a pointer to the TabContents. The details | 
| 333     // is a Details<TitleUpdatedDetails> that contains more information. | 333     // is a Details<TitleUpdatedDetails> that contains more information. | 
| 334     TAB_CONTENTS_TITLE_UPDATED, | 334     TAB_CONTENTS_TITLE_UPDATED, | 
| 335 | 335 | 
| 336     // This message is sent when a new InfoBar has been added to a TabContents. | 336     // This message is sent when a new InfoBar has been added to a | 
| 337     // The source is a Source<TabContents> with a pointer to the TabContents | 337     // TabContentsWrapper.  The source is a Source<TabContentsWrapper> with a | 
| 338     // the InfoBar was added to. The details is a Details<InfoBarDelegate> with | 338     // pointer to the TabContentsWrapper the InfoBar was added to.  The details | 
| 339     // a pointer to an object implementing the InfoBarDelegate interface for | 339     // is a Details<InfoBar> with a pointer to the InfoBar that was added. | 
| 340     // the InfoBar that was added. |  | 
| 341     TAB_CONTENTS_INFOBAR_ADDED, | 340     TAB_CONTENTS_INFOBAR_ADDED, | 
| 342 | 341 | 
| 343     // This message is sent when an InfoBar is about to be removed from a | 342     // This message is sent when an InfoBar is about to be removed from a | 
| 344     // TabContents. The source is a Source<TabContents> with a pointer to the | 343     // TabContentsWrapper.  The source is a Source<TabContentsWrapper> with a | 
| 345     // TabContents the InfoBar was removed from. The details is a | 344     // pointer to the TabContentsWrapper the InfoBar was removed from.  The | 
| 346     // Details<InfoBarDelegate> with a pointer to an object implementing the | 345     // details is a Details<std::pair<InfoBarDelegate*, bool> > with a pointer | 
| 347     // InfoBarDelegate interface for the InfoBar that was removed. | 346     // to the removed delegate and whether the removal should be animated. | 
| 348     TAB_CONTENTS_INFOBAR_REMOVED, | 347     TAB_CONTENTS_INFOBAR_REMOVED, | 
| 349 | 348 | 
| 350     // This message is sent when an InfoBar is replacing another infobar in a | 349     // This message is sent when an InfoBar is replacing another infobar in a | 
| 351     // TabContents. The source is a Source<TabContents> with a pointer to the | 350     // TabContentsWrapper.  The source is a Source<TabContentsWrapper> with a | 
| 352     // TabContents the InfoBar was removed from. The details is a | 351     // pointer to the TabContentsWrapper the InfoBar was removed from.  The | 
| 353     // Details<std::pair<InfoBarDelegate*, InfoBarDelegate*> > with a pointer | 352     // details is a Details<std::pair<InfoBarDelegate*, InfoBar*> > with a | 
| 354     // to the old and new InfoBarDelegates, respectively. | 353     // pointer to the removed delegate and new InfoBar, respectively. | 
| 355     TAB_CONTENTS_INFOBAR_REPLACED, | 354     TAB_CONTENTS_INFOBAR_REPLACED, | 
| 356 | 355 | 
| 357     // This is sent when an externally hosted tab is created. The details | 356     // This is sent when an externally hosted tab is created. The details | 
| 358     // contain the ExternalTabContainer that contains the tab | 357     // contain the ExternalTabContainer that contains the tab | 
| 359     EXTERNAL_TAB_CREATED, | 358     EXTERNAL_TAB_CREATED, | 
| 360 | 359 | 
| 361     // This is sent when an externally hosted tab is closed.  No details are | 360     // This is sent when an externally hosted tab is closed.  No details are | 
| 362     // expected. | 361     // expected. | 
| 363     EXTERNAL_TAB_CLOSED, | 362     EXTERNAL_TAB_CLOSED, | 
| 364 | 363 | 
| (...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1339 }; | 1338 }; | 
| 1340 | 1339 | 
| 1341 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1340 inline bool operator==(NotificationType::Type a, NotificationType b) { | 
| 1342   return a == b.value; | 1341   return a == b.value; | 
| 1343 } | 1342 } | 
| 1344 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1343 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 
| 1345   return a != b.value; | 1344   return a != b.value; | 
| 1346 } | 1345 } | 
| 1347 | 1346 | 
| 1348 #endif  // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1347 #endif  // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 
| OLD | NEW | 
|---|