| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 EphemeralRange m_checkingRange; | 75 EphemeralRange m_checkingRange; |
| 76 mutable EphemeralRange m_paragraphRange; | 76 mutable EphemeralRange m_paragraphRange; |
| 77 mutable EphemeralRange m_offsetAsRange; | 77 mutable EphemeralRange m_offsetAsRange; |
| 78 mutable String m_text; | 78 mutable String m_text; |
| 79 mutable int m_checkingStart; | 79 mutable int m_checkingStart; |
| 80 mutable int m_checkingEnd; | 80 mutable int m_checkingEnd; |
| 81 mutable int m_checkingLength; | 81 mutable int m_checkingLength; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 class TextCheckingHelper { | |
| 85 WTF_MAKE_NONCOPYABLE(TextCheckingHelper); | |
| 86 STACK_ALLOCATED(); | |
| 87 public: | |
| 88 TextCheckingHelper(SpellCheckerClient&, const Position& start, const Positio
n& end); | |
| 89 ~TextCheckingHelper(); | |
| 90 | |
| 91 String findFirstMisspellingOrBadGrammar(int& outFirstFoundOffset); | |
| 92 | |
| 93 private: | |
| 94 SpellCheckerClient* m_client; | |
| 95 Position m_start; | |
| 96 Position m_end; | |
| 97 }; | |
| 98 | |
| 99 } // namespace blink | 84 } // namespace blink |
| 100 | 85 |
| 101 #endif // TextCheckingHelper_h | 86 #endif // TextCheckingHelper_h |
| OLD | NEW |