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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 // Sent when the starred state of a URL changes. A URL is starred if there | 537 // Sent when the starred state of a URL changes. A URL is starred if there |
538 // is at least one bookmark for it. The source is a Profile and the details | 538 // is at least one bookmark for it. The source is a Profile and the details |
539 // is history::URLsStarredDetails that contains the list of URLs and | 539 // is history::URLsStarredDetails that contains the list of URLs and |
540 // whether they were starred or unstarred. | 540 // whether they were starred or unstarred. |
541 URLS_STARRED, | 541 URLS_STARRED, |
542 | 542 |
543 // Sent when the bookmark bar model finishes loading. This source is the | 543 // Sent when the bookmark bar model finishes loading. This source is the |
544 // Profile, and the details aren't used. | 544 // Profile, and the details aren't used. |
545 BOOKMARK_MODEL_LOADED, | 545 BOOKMARK_MODEL_LOADED, |
546 | 546 |
547 // Sent when the spellchecker object changes. Note that this is not sent | |
548 // the first time the spellchecker gets initialized. The source is the | |
549 // profile, the details is SpellcheckerReinitializedDetails defined in | |
550 // profile. | |
551 SPELLCHECKER_REINITIALIZED, | |
552 | |
553 // Sent when SpellCheckHost has been reloaded. The source is the profile, | 547 // Sent when SpellCheckHost has been reloaded. The source is the profile, |
554 // the details are NoDetails. | 548 // the details are NoDetails. |
555 SPELLCHECK_HOST_REINITIALIZED, | 549 SPELLCHECK_HOST_REINITIALIZED, |
556 | 550 |
557 // Sent when a new word has been added to the custom dictionary. The source | 551 // Sent when a new word has been added to the custom dictionary. The source |
558 // is the SpellCheckHost, the details are NoDetails. | 552 // is the SpellCheckHost, the details are NoDetails. |
559 SPELLCHECK_WORD_ADDED, | 553 SPELLCHECK_WORD_ADDED, |
560 | 554 |
| 555 // Sent by the profile when the automatic spell correction setting has been |
| 556 // toggled. It exists as a notification rather than just letting interested |
| 557 // parties listen for the pref change because some objects may outlive the |
| 558 // profile. Source is profile, details is NoDetails. |
| 559 SPELLCHECK_AUTOSPELL_TOGGLED, |
| 560 |
561 // Sent when the bookmark bubble is shown for a particular URL. The source | 561 // Sent when the bookmark bubble is shown for a particular URL. The source |
562 // is the profile, the details the URL. | 562 // is the profile, the details the URL. |
563 BOOKMARK_BUBBLE_SHOWN, | 563 BOOKMARK_BUBBLE_SHOWN, |
564 | 564 |
565 // Non-history storage services -------------------------------------------- | 565 // Non-history storage services -------------------------------------------- |
566 | 566 |
567 // Notification that the TemplateURLModel has finished loading from the | 567 // Notification that the TemplateURLModel has finished loading from the |
568 // database. The source is the TemplateURLModel, and the details are | 568 // database. The source is the TemplateURLModel, and the details are |
569 // NoDetails. | 569 // NoDetails. |
570 TEMPLATE_URL_MODEL_LOADED, | 570 TEMPLATE_URL_MODEL_LOADED, |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 }; | 793 }; |
794 | 794 |
795 inline bool operator==(NotificationType::Type a, NotificationType b) { | 795 inline bool operator==(NotificationType::Type a, NotificationType b) { |
796 return a == b.value; | 796 return a == b.value; |
797 } | 797 } |
798 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 798 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
799 return a != b.value; | 799 return a != b.value; |
800 } | 800 } |
801 | 801 |
802 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 802 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |