diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-21 22:27:24 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-21 22:27:24 +0000 |
commit | 616ed5a653d4bc13b4633d7c7b85d2f0c73bfd72 (patch) | |
tree | 04b8cd92d18cd6e1ff54e46c6c32b0d70391a831 /chrome/common | |
parent | c7eeed7fa25e06ec3d0367a74d2b43671958c5d3 (diff) | |
download | chromium_src-616ed5a653d4bc13b4633d7c7b85d2f0c73bfd72.zip chromium_src-616ed5a653d4bc13b4633d7c7b85d2f0c73bfd72.tar.gz chromium_src-616ed5a653d4bc13b4633d7c7b85d2f0c73bfd72.tar.bz2 |
Beginnings of a new InfoBar system.
This implements AlertInfoBar and InfoBarContainer. It also makes the crashed plugin/js oom infobars use this new system.
Design Doc: http://dev.chromium.org/developers/design-documents/info-barshttp://crbug.com/4620
Review URL: http://codereview.chromium.org/11318
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5856 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/notification_types.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/chrome/common/notification_types.h b/chrome/common/notification_types.h index 53e0954..c748d36 100644 --- a/chrome/common/notification_types.h +++ b/chrome/common/notification_types.h @@ -200,15 +200,19 @@ enum NotificationType { // No details are expected. NOTIFY_WEB_CONTENTS_DISCONNECTED, - // This message is sent when a new message is added to a WebContents. The - // source is a Source<WebContents> with a pointer to the WebContents the - // message was added to. - NOTIFY_WEB_CONTENTS_MESSAGE_ADDED, - - // This message is sent when a message is removed from a WebContents. The - // source is a Source<WebContents> with a pointer to the WebContents the - // message was removed from. - NOTIFY_WEB_CONTENTS_MESSAGE_REMOVED, + // This message is sent when a new InfoBar is added to a TabContents. The + // source is a Source<TabContents> with a pointer to the TabContents the + // InfoBar was added to. The details is a Details<InfoBarDelegate> with a + // pointer to an object implementing the InfoBarDelegate interface for the + // InfoBar that was added. + NOTIFY_TAB_CONTENTS_INFOBAR_ADDED, + + // This message is sent when an InfoBar is removed from a TabContents. The + // source is a Source<TabContents> with a pointer to the TabContents the + // InfoBar was removed from. The details is a Details<InfoBarDelegate> with a + // pointer to an object implementing the InfoBarDelegate interface for the + // InfoBar that was removed. + NOTIFY_TAB_CONTENTS_INFOBAR_REMOVED, // This is sent when an externally hosted tab is created. The details contain // the ExternalTabContainer that contains the tab |