Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: content/common/notification_type.h

Issue 6880320: Move code that talks to spellchecking out of content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 // Sent when the starred state of a URL changes. A URL is starred if there 702 // Sent when the starred state of a URL changes. A URL is starred if there
703 // is at least one bookmark for it. The source is a Profile and the details 703 // is at least one bookmark for it. The source is a Profile and the details
704 // is history::URLsStarredDetails that contains the list of URLs and 704 // is history::URLsStarredDetails that contains the list of URLs and
705 // whether they were starred or unstarred. 705 // whether they were starred or unstarred.
706 URLS_STARRED, 706 URLS_STARRED,
707 707
708 // Sent when the bookmark bar model finishes loading. This source is the 708 // Sent when the bookmark bar model finishes loading. This source is the
709 // Profile, and the details aren't used. 709 // Profile, and the details aren't used.
710 BOOKMARK_MODEL_LOADED, 710 BOOKMARK_MODEL_LOADED,
711 711
712 // Sent when SpellCheckHost has been reloaded. The source is the profile,
713 // the details are NoDetails.
714 SPELLCHECK_HOST_REINITIALIZED,
715
716 // Sent when a new word has been added to the custom dictionary. The source
717 // is the SpellCheckHost, the details are NoDetails.
718 SPELLCHECK_WORD_ADDED,
719
720 // Sent by the profile when the automatic spell correction setting has been
721 // toggled. It exists as a notification rather than just letting interested
722 // parties listen for the pref change because some objects may outlive the
723 // profile. Source is profile, details is NoDetails.
724 SPELLCHECK_AUTOSPELL_TOGGLED,
725
726 // Sent when the bookmark bubble is shown for a particular URL. The source 712 // Sent when the bookmark bubble is shown for a particular URL. The source
727 // is the profile, the details the URL. 713 // is the profile, the details the URL.
728 BOOKMARK_BUBBLE_SHOWN, 714 BOOKMARK_BUBBLE_SHOWN,
729 715
730 // Non-history storage services -------------------------------------------- 716 // Non-history storage services --------------------------------------------
731 717
732 // Notification that the TemplateURLModel has finished loading from the 718 // Notification that the TemplateURLModel has finished loading from the
733 // database. The source is the TemplateURLModel, and the details are 719 // database. The source is the TemplateURLModel, and the details are
734 // NoDetails. 720 // NoDetails.
735 TEMPLATE_URL_MODEL_LOADED, 721 TEMPLATE_URL_MODEL_LOADED,
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 }; 1331 };
1346 1332
1347 inline bool operator==(NotificationType::Type a, NotificationType b) { 1333 inline bool operator==(NotificationType::Type a, NotificationType b) {
1348 return a == b.value; 1334 return a == b.value;
1349 } 1335 }
1350 inline bool operator!=(NotificationType::Type a, NotificationType b) { 1336 inline bool operator!=(NotificationType::Type a, NotificationType b) {
1351 return a != b.value; 1337 return a != b.value;
1352 } 1338 }
1353 1339
1354 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ 1340 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698