Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Side by Side Diff: chrome/common/notification_type.h

Issue 165029: Fix a few bugs with the theme infobar: (Closed)
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // the InfoBar that was added. 273 // the InfoBar that was added.
274 TAB_CONTENTS_INFOBAR_ADDED, 274 TAB_CONTENTS_INFOBAR_ADDED,
275 275
276 // This message is sent when an InfoBar is about to be removed from a 276 // This message is sent when an InfoBar is about to be removed from a
277 // TabContents. The source is a Source<TabContents> with a pointer to the 277 // TabContents. The source is a Source<TabContents> with a pointer to the
278 // TabContents the InfoBar was removed from. The details is a 278 // TabContents the InfoBar was removed from. The details is a
279 // Details<InfoBarDelegate> with a pointer to an object implementing the 279 // Details<InfoBarDelegate> with a pointer to an object implementing the
280 // InfoBarDelegate interface for the InfoBar that was removed. 280 // InfoBarDelegate interface for the InfoBar that was removed.
281 TAB_CONTENTS_INFOBAR_REMOVED, 281 TAB_CONTENTS_INFOBAR_REMOVED,
282 282
283 // This message is sent when an InfoBar is replacing another infobar in a
284 // TabContents. The source is a Source<TabContents> with a pointer to the
285 // TabContents the InfoBar was removed from. The details is a
286 // Details<std::pair<InfoBarDelegate*, InfoBarDelegate*> > with a pointer
287 // to the old and new InfoBarDelegates, respectively.
288 TAB_CONTENTS_INFOBAR_REPLACED,
289
283 // This is sent when an externally hosted tab is created. The details 290 // This is sent when an externally hosted tab is created. The details
284 // contain the ExternalTabContainer that contains the tab 291 // contain the ExternalTabContainer that contains the tab
285 EXTERNAL_TAB_CREATED, 292 EXTERNAL_TAB_CREATED,
286 293
287 // This is sent when an externally hosted tab is closed. No details are 294 // This is sent when an externally hosted tab is closed. No details are
288 // expected. 295 // expected.
289 EXTERNAL_TAB_CLOSED, 296 EXTERNAL_TAB_CLOSED,
290 297
291 // Indicates that the new page tab has finished loading. This is used for 298 // Indicates that the new page tab has finished loading. This is used for
292 // performance testing to see how fast we can load it after startup, and is 299 // performance testing to see how fast we can load it after startup, and is
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 }; 659 };
653 660
654 inline bool operator==(NotificationType::Type a, NotificationType b) { 661 inline bool operator==(NotificationType::Type a, NotificationType b) {
655 return a == b.value; 662 return a == b.value;
656 } 663 }
657 inline bool operator!=(NotificationType::Type a, NotificationType b) { 664 inline bool operator!=(NotificationType::Type a, NotificationType b) {
658 return a != b.value; 665 return a != b.value;
659 } 666 }
660 667
661 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ 668 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698