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

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

Issue 7006010: Change InfoBar-related notifications to be sourced from a TabContentsWrapper, not a TabContents. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/infobars/translate_infobar_base.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/infobars/translate_infobar_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698