| 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) |
| 548 // Sent when SpellCheckHost has been reloaded. The source is the profile, | 549 // Sent when SpellCheckHost has been reloaded. The source is the profile, |
| 549 // the details are NoDetails. | 550 // the details are NoDetails. |
| 550 SPELLCHECK_HOST_REINITIALIZED, | 551 SPELLCHECK_HOST_REINITIALIZED, |
| 551 | 552 |
| 552 // Sent when a new word has been added to the custom dictionary. The source | 553 // Sent when a new word has been added to the custom dictionary. The source |
| 553 // is the SpellCheckHost, the details are NoDetails. | 554 // is the SpellCheckHost, the details are NoDetails. |
| 554 SPELLCHECK_WORD_ADDED, | 555 SPELLCHECK_WORD_ADDED, |
| 556 #endif |
| 555 | 557 |
| 556 // Sent when the bookmark bubble is shown for a particular URL. The source | 558 // Sent when the bookmark bubble is shown for a particular URL. The source |
| 557 // is the profile, the details the URL. | 559 // is the profile, the details the URL. |
| 558 BOOKMARK_BUBBLE_SHOWN, | 560 BOOKMARK_BUBBLE_SHOWN, |
| 559 | 561 |
| 560 // Non-history storage services -------------------------------------------- | 562 // Non-history storage services -------------------------------------------- |
| 561 | 563 |
| 562 // Notification that the TemplateURLModel has finished loading from the | 564 // Notification that the TemplateURLModel has finished loading from the |
| 563 // database. The source is the TemplateURLModel, and the details are | 565 // database. The source is the TemplateURLModel, and the details are |
| 564 // NoDetails. | 566 // NoDetails. |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 }; | 790 }; |
| 789 | 791 |
| 790 inline bool operator==(NotificationType::Type a, NotificationType b) { | 792 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 791 return a == b.value; | 793 return a == b.value; |
| 792 } | 794 } |
| 793 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 795 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 794 return a != b.value; | 796 return a != b.value; |
| 795 } | 797 } |
| 796 | 798 |
| 797 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 799 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |