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

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, 10 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 void markMisspellingsAfterLineBreak(const VisibleSelection& wordSelection); 62 void markMisspellingsAfterLineBreak(const VisibleSelection& wordSelection);
64 void markMisspellingsAfterTypingToWord(const VisiblePosition &wordStart, con st VisibleSelection& selectionAfterTyping); 63 void markMisspellingsAfterTypingToWord(const VisiblePosition &wordStart, con st VisibleSelection& selectionAfterTyping);
65 bool markMisspellings(const VisibleSelection&); 64 bool markMisspellings(const VisibleSelection&);
66 void markBadGrammar(const VisibleSelection&); 65 void markBadGrammar(const VisibleSelection&);
67 void markMisspellingsAndBadGrammar(const VisibleSelection& spellingSelection , bool markGrammar, const VisibleSelection& grammarSelection); 66 void markMisspellingsAndBadGrammar(const VisibleSelection& spellingSelection , bool markGrammar, const VisibleSelection& grammarSelection);
68 void markAndReplaceFor(PassRefPtrWillBeRawPtr<SpellCheckRequest>, const Vect or<TextCheckingResult>&); 67 void markAndReplaceFor(RawPtr<SpellCheckRequest>, const Vector<TextCheckingR esult>&);
69 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask, const Ep hemeralRange& spellingRange, const EphemeralRange& grammarRange); 68 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask, const Ep hemeralRange& spellingRange, const EphemeralRange& grammarRange);
70 void advanceToNextMisspelling(bool startBeforeSelection = false); 69 void advanceToNextMisspelling(bool startBeforeSelection = false);
71 void showSpellingGuessPanel(); 70 void showSpellingGuessPanel();
72 void didBeginEditing(Element*); 71 void didBeginEditing(Element*);
73 void clearMisspellingsAndBadGrammar(const VisibleSelection&); 72 void clearMisspellingsAndBadGrammar(const VisibleSelection&);
74 void markMisspellingsAndBadGrammar(const VisibleSelection&); 73 void markMisspellingsAndBadGrammar(const VisibleSelection&);
75 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe lection::SetSelectionOptions); 74 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe lection::SetSelectionOptions);
76 void replaceMisspelledRange(const String&); 75 void replaceMisspelledRange(const String&);
77 void removeSpellingMarkers(); 76 void removeSpellingMarkers();
78 void removeSpellingMarkersUnderWords(const Vector<String>& words); 77 void removeSpellingMarkersUnderWords(const Vector<String>& words);
(...skipping 21 matching lines...) Expand all
100 } 99 }
101 100
102 bool markMisspellingsOrBadGrammar(const VisibleSelection&, bool checkSpellin g); 101 bool markMisspellingsOrBadGrammar(const VisibleSelection&, bool checkSpellin g);
103 TextCheckingTypeMask resolveTextCheckingTypeMask(TextCheckingTypeMask); 102 TextCheckingTypeMask resolveTextCheckingTypeMask(TextCheckingTypeMask);
104 103
105 void removeMarkers(const VisibleSelection&, DocumentMarker::MarkerTypes); 104 void removeMarkers(const VisibleSelection&, DocumentMarker::MarkerTypes);
106 bool unifiedTextCheckerEnabled() const; 105 bool unifiedTextCheckerEnabled() const;
107 106
108 void chunkAndMarkAllMisspellingsAndBadGrammar(TextCheckingTypeMask textCheck ingOptions, const TextCheckingParagraph& fullParagraphToCheck); 107 void chunkAndMarkAllMisspellingsAndBadGrammar(TextCheckingTypeMask textCheck ingOptions, const TextCheckingParagraph& fullParagraphToCheck);
109 108
110 RawPtrWillBeMember<LocalFrame> m_frame; 109 Member<LocalFrame> m_frame;
111 const OwnPtrWillBeMember<SpellCheckRequester> m_spellCheckRequester; 110 const Member<SpellCheckRequester> m_spellCheckRequester;
112 }; 111 };
113 112
114 } // namespace blink 113 } // namespace blink
115 114
116 #endif // SpellChecker_h 115 #endif // SpellChecker_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698