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