OLD | NEW |
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 24 matching lines...) Expand all Loading... |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 class LocalFrame; | 37 class LocalFrame; |
38 class SpellCheckerClient; | 38 class SpellCheckerClient; |
39 class SpellCheckRequest; | 39 class SpellCheckRequest; |
40 class SpellCheckRequester; | 40 class SpellCheckRequester; |
41 class TextCheckerClient; | 41 class TextCheckerClient; |
42 class TextCheckingParagraph; | 42 class TextCheckingParagraph; |
43 struct TextCheckingResult; | 43 struct TextCheckingResult; |
44 | 44 |
45 class SpellChecker FINAL : public NoBaseWillBeGarbageCollectedFinalized<SpellChe
cker> { | 45 class SpellChecker final : public NoBaseWillBeGarbageCollectedFinalized<SpellChe
cker> { |
46 WTF_MAKE_NONCOPYABLE(SpellChecker); | 46 WTF_MAKE_NONCOPYABLE(SpellChecker); |
47 public: | 47 public: |
48 static PassOwnPtrWillBeRawPtr<SpellChecker> create(LocalFrame&); | 48 static PassOwnPtrWillBeRawPtr<SpellChecker> create(LocalFrame&); |
49 | 49 |
50 ~SpellChecker(); | 50 ~SpellChecker(); |
51 void trace(Visitor*); | 51 void trace(Visitor*); |
52 | 52 |
53 SpellCheckerClient& spellCheckerClient() const; | 53 SpellCheckerClient& spellCheckerClient() const; |
54 TextCheckerClient& textChecker() const; | 54 TextCheckerClient& textChecker() const; |
55 | 55 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 void chunkAndMarkAllMisspellingsAndBadGrammar(TextCheckingTypeMask textCheck
ingOptions, const TextCheckingParagraph& fullParagraphToCheck, bool asynchronous
); | 106 void chunkAndMarkAllMisspellingsAndBadGrammar(TextCheckingTypeMask textCheck
ingOptions, const TextCheckingParagraph& fullParagraphToCheck, bool asynchronous
); |
107 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask textCheck
ingOptions, Range* checkingRange, Range* paragraphRange, bool asynchronous, int
requestNumber, int* checkingLength = 0); | 107 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask textCheck
ingOptions, Range* checkingRange, Range* paragraphRange, bool asynchronous, int
requestNumber, int* checkingLength = 0); |
108 | 108 |
109 RawPtrWillBeMember<LocalFrame> m_frame; | 109 RawPtrWillBeMember<LocalFrame> m_frame; |
110 const OwnPtrWillBeMember<SpellCheckRequester> m_spellCheckRequester; | 110 const OwnPtrWillBeMember<SpellCheckRequester> m_spellCheckRequester; |
111 }; | 111 }; |
112 | 112 |
113 } // namespace blink | 113 } // namespace blink |
114 | 114 |
115 #endif // SpellChecker_h | 115 #endif // SpellChecker_h |
OLD | NEW |