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

Side by Side Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 25 matching lines...) Expand all
36 namespace blink { 36 namespace blink {
37 37
38 class LocalFrame; 38 class LocalFrame;
39 class SpellCheckerClient; 39 class SpellCheckerClient;
40 class SpellCheckRequest; 40 class SpellCheckRequest;
41 class SpellCheckRequester; 41 class SpellCheckRequester;
42 class TextCheckerClient; 42 class TextCheckerClient;
43 class TextCheckingParagraph; 43 class TextCheckingParagraph;
44 struct TextCheckingResult; 44 struct TextCheckingResult;
45 45
46 class CORE_EXPORT SpellChecker final : public NoBaseWillBeGarbageCollectedFinali zed<SpellChecker> { 46 class CORE_EXPORT SpellChecker final : public GarbageCollectedFinalized<SpellChe cker> {
47 USING_FAST_MALLOC_WILL_BE_REMOVED(SpellChecker);
48 WTF_MAKE_NONCOPYABLE(SpellChecker); 47 WTF_MAKE_NONCOPYABLE(SpellChecker);
49 public: 48 public:
50 static PassOwnPtrWillBeRawPtr<SpellChecker> create(LocalFrame&); 49 static RawPtr<SpellChecker> create(LocalFrame&);
51 50
52 ~SpellChecker(); 51 ~SpellChecker();
53 DECLARE_TRACE(); 52 DECLARE_TRACE();
54 53
55 SpellCheckerClient& spellCheckerClient() const; 54 SpellCheckerClient& spellCheckerClient() const;
56 TextCheckerClient& textChecker() const; 55 TextCheckerClient& textChecker() const;
57 56
58 bool isContinuousSpellCheckingEnabled() const; 57 bool isContinuousSpellCheckingEnabled() const;
59 void toggleContinuousSpellChecking(); 58 void toggleContinuousSpellChecking();
60 void ignoreSpelling(); 59 void ignoreSpelling();
61 bool isSpellCheckingEnabledInFocusedNode() const; 60 bool isSpellCheckingEnabledInFocusedNode() const;
62 bool isSpellCheckingEnabledFor(Node*) const; 61 bool isSpellCheckingEnabledFor(Node*) const;
63 static bool isSpellCheckingEnabledFor(const VisibleSelection&); 62 static bool isSpellCheckingEnabledFor(const VisibleSelection&);
64 void markMisspellingsAfterLineBreak(const VisibleSelection& wordSelection); 63 void markMisspellingsAfterLineBreak(const VisibleSelection& wordSelection);
65 void markMisspellingsAfterTypingToWord(const VisiblePosition &wordStart, con st VisibleSelection& selectionAfterTyping); 64 void markMisspellingsAfterTypingToWord(const VisiblePosition &wordStart, con st VisibleSelection& selectionAfterTyping);
66 bool markMisspellings(const VisibleSelection&); 65 bool markMisspellings(const VisibleSelection&);
67 void markBadGrammar(const VisibleSelection&); 66 void markBadGrammar(const VisibleSelection&);
68 void markMisspellingsAndBadGrammar(const VisibleSelection& spellingSelection , bool markGrammar, const VisibleSelection& grammarSelection); 67 void markMisspellingsAndBadGrammar(const VisibleSelection& spellingSelection , bool markGrammar, const VisibleSelection& grammarSelection);
69 void markAndReplaceFor(PassRefPtrWillBeRawPtr<SpellCheckRequest>, const Vect or<TextCheckingResult>&); 68 void markAndReplaceFor(RawPtr<SpellCheckRequest>, const Vector<TextCheckingR esult>&);
70 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask, const Ep hemeralRange& spellingRange, const EphemeralRange& grammarRange); 69 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask, const Ep hemeralRange& spellingRange, const EphemeralRange& grammarRange);
71 void advanceToNextMisspelling(bool startBeforeSelection = false); 70 void advanceToNextMisspelling(bool startBeforeSelection = false);
72 void showSpellingGuessPanel(); 71 void showSpellingGuessPanel();
73 void didBeginEditing(Element*); 72 void didBeginEditing(Element*);
74 void clearMisspellingsAndBadGrammar(const VisibleSelection&); 73 void clearMisspellingsAndBadGrammar(const VisibleSelection&);
75 void markMisspellingsAndBadGrammar(const VisibleSelection&); 74 void markMisspellingsAndBadGrammar(const VisibleSelection&);
76 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe lection::SetSelectionOptions); 75 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe lection::SetSelectionOptions);
77 void replaceMisspelledRange(const String&); 76 void replaceMisspelledRange(const String&);
78 void removeSpellingMarkers(); 77 void removeSpellingMarkers();
79 void removeSpellingMarkersUnderWords(const Vector<String>& words); 78 void removeSpellingMarkersUnderWords(const Vector<String>& words);
(...skipping 29 matching lines...) Expand all
109 } 108 }
110 109
111 bool markMisspellingsOrBadGrammar(const VisibleSelection&, bool checkSpellin g); 110 bool markMisspellingsOrBadGrammar(const VisibleSelection&, bool checkSpellin g);
112 TextCheckingTypeMask resolveTextCheckingTypeMask(TextCheckingTypeMask); 111 TextCheckingTypeMask resolveTextCheckingTypeMask(TextCheckingTypeMask);
113 112
114 void removeMarkers(const VisibleSelection&, DocumentMarker::MarkerTypes); 113 void removeMarkers(const VisibleSelection&, DocumentMarker::MarkerTypes);
115 bool unifiedTextCheckerEnabled() const; 114 bool unifiedTextCheckerEnabled() const;
116 115
117 void chunkAndMarkAllMisspellingsAndBadGrammar(TextCheckingTypeMask textCheck ingOptions, const TextCheckingParagraph& fullParagraphToCheck); 116 void chunkAndMarkAllMisspellingsAndBadGrammar(TextCheckingTypeMask textCheck ingOptions, const TextCheckingParagraph& fullParagraphToCheck);
118 117
119 RawPtrWillBeMember<LocalFrame> m_frame; 118 Member<LocalFrame> m_frame;
120 const OwnPtrWillBeMember<SpellCheckRequester> m_spellCheckRequester; 119 const Member<SpellCheckRequester> m_spellCheckRequester;
121 }; 120 };
122 121
123 } // namespace blink 122 } // namespace blink
124 123
125 #endif // SpellChecker_h 124 #endif // SpellChecker_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698