| 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 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 String findFirstMisspellingOrBadGrammar(bool& outIsSpelling, int& outFirstFo
undOffset, GrammarDetail& outGrammarDetail); | 92 String findFirstMisspellingOrBadGrammar(bool& outIsSpelling, int& outFirstFo
undOffset, GrammarDetail& outGrammarDetail); |
| 93 String findFirstBadGrammar(GrammarDetail& outGrammarDetail, int& outGrammarP
hraseOffset, bool markAll); | 93 String findFirstBadGrammar(GrammarDetail& outGrammarDetail, int& outGrammarP
hraseOffset, bool markAll); |
| 94 bool markAllMisspellings(); | 94 bool markAllMisspellings(); |
| 95 void markAllBadGrammar(); | 95 void markAllBadGrammar(); |
| 96 | 96 |
| 97 private: | 97 private: |
| 98 SpellCheckerClient* m_client; | 98 SpellCheckerClient* m_client; |
| 99 Position m_start; | 99 Position m_start; |
| 100 Position m_end; | 100 Position m_end; |
| 101 | 101 |
| 102 int findFirstGrammarDetail(const Vector<GrammarDetail>& grammarDetails, int
badGrammarPhraseLocation, int startOffset, int endOffset, bool markAll) const; | |
| 103 bool unifiedTextCheckerEnabled() const; | 102 bool unifiedTextCheckerEnabled() const; |
| 104 }; | 103 }; |
| 105 | 104 |
| 106 void checkTextOfParagraph(TextCheckerClient&, const String&, TextCheckingTypeMas
k, Vector<TextCheckingResult>&); | 105 void checkTextOfParagraph(TextCheckerClient&, const String&, TextCheckingTypeMas
k, Vector<TextCheckingResult>&); |
| 107 bool unifiedTextCheckerEnabled(const LocalFrame*); | 106 bool unifiedTextCheckerEnabled(const LocalFrame*); |
| 108 | 107 |
| 109 } // namespace blink | 108 } // namespace blink |
| 110 | 109 |
| 111 #endif // TextCheckingHelper_h | 110 #endif // TextCheckingHelper_h |
| OLD | NEW |