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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 // TAB_CONTENTS_DISCONNECTED notification is guaranteed before the | 322 // TAB_CONTENTS_DISCONNECTED notification is guaranteed before the |
323 // source pointer becomes junk. No details are expected. | 323 // source pointer becomes junk. No details are expected. |
324 TAB_CONTENTS_SWAPPED, | 324 TAB_CONTENTS_SWAPPED, |
325 | 325 |
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. No details | 332 // is a Source<TabContents> with a pointer to the TabContents. The details |
333 // are expected. | 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 TabContents. |
337 // The source is a Source<TabContents> with a pointer to the TabContents | 337 // The source is a Source<TabContents> with a pointer to the TabContents |
338 // the InfoBar was added to. The details is a Details<InfoBarDelegate> with | 338 // the InfoBar was added to. The details is a Details<InfoBarDelegate> with |
339 // a pointer to an object implementing the InfoBarDelegate interface for | 339 // a pointer to an object implementing the InfoBarDelegate interface for |
340 // the InfoBar that was added. | 340 // the InfoBar that was added. |
341 TAB_CONTENTS_INFOBAR_ADDED, | 341 TAB_CONTENTS_INFOBAR_ADDED, |
342 | 342 |
343 // This message is sent when an InfoBar is about to be removed from a | 343 // This message is sent when an InfoBar is about to be removed from a |
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1318 }; | 1318 }; |
1319 | 1319 |
1320 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1320 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1321 return a == b.value; | 1321 return a == b.value; |
1322 } | 1322 } |
1323 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1323 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1324 return a != b.value; | 1324 return a != b.value; |
1325 } | 1325 } |
1326 | 1326 |
1327 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1327 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |