OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 // Sent when the bookmark bar model finishes loading. This source is the | 544 // Sent when the bookmark bar model finishes loading. This source is the |
545 // Profile, and the details aren't used. | 545 // Profile, and the details aren't used. |
546 BOOKMARK_MODEL_LOADED, | 546 BOOKMARK_MODEL_LOADED, |
547 | 547 |
548 // Sent when the spellchecker object changes. Note that this is not sent | 548 // Sent when the spellchecker object changes. Note that this is not sent |
549 // the first time the spellchecker gets initialized. The source is the | 549 // the first time the spellchecker gets initialized. The source is the |
550 // profile, the details is SpellcheckerReinitializedDetails defined in | 550 // profile, the details is SpellcheckerReinitializedDetails defined in |
551 // profile. | 551 // profile. |
552 SPELLCHECKER_REINITIALIZED, | 552 SPELLCHECKER_REINITIALIZED, |
553 | 553 |
554 #if defined(SPELLCHECKER_IN_RENDERER) | |
555 // Sent when SpellCheckHost has been reloaded. The source is the profile, | 554 // Sent when SpellCheckHost has been reloaded. The source is the profile, |
556 // the details are NoDetails. | 555 // the details are NoDetails. |
557 SPELLCHECK_HOST_REINITIALIZED, | 556 SPELLCHECK_HOST_REINITIALIZED, |
558 | 557 |
559 // Sent when a new word has been added to the custom dictionary. The source | 558 // Sent when a new word has been added to the custom dictionary. The source |
560 // is the SpellCheckHost, the details are NoDetails. | 559 // is the SpellCheckHost, the details are NoDetails. |
561 SPELLCHECK_WORD_ADDED, | 560 SPELLCHECK_WORD_ADDED, |
562 #endif | |
563 | 561 |
564 // Sent when the bookmark bubble is shown for a particular URL. The source | 562 // Sent when the bookmark bubble is shown for a particular URL. The source |
565 // is the profile, the details the URL. | 563 // is the profile, the details the URL. |
566 BOOKMARK_BUBBLE_SHOWN, | 564 BOOKMARK_BUBBLE_SHOWN, |
567 | 565 |
568 // Non-history storage services -------------------------------------------- | 566 // Non-history storage services -------------------------------------------- |
569 | 567 |
570 // Notification that the TemplateURLModel has finished loading from the | 568 // Notification that the TemplateURLModel has finished loading from the |
571 // database. The source is the TemplateURLModel, and the details are | 569 // database. The source is the TemplateURLModel, and the details are |
572 // NoDetails. | 570 // NoDetails. |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 }; | 793 }; |
796 | 794 |
797 inline bool operator==(NotificationType::Type a, NotificationType b) { | 795 inline bool operator==(NotificationType::Type a, NotificationType b) { |
798 return a == b.value; | 796 return a == b.value; |
799 } | 797 } |
800 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 798 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
801 return a != b.value; | 799 return a != b.value; |
802 } | 800 } |
803 | 801 |
804 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 802 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |