| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 private: | 95 private: |
| 96 explicit SpellChecker(LocalFrame&); | 96 explicit SpellChecker(LocalFrame&); |
| 97 | 97 |
| 98 LocalFrame& frame() const | 98 LocalFrame& frame() const |
| 99 { | 99 { |
| 100 DCHECK(m_frame); | 100 DCHECK(m_frame); |
| 101 return *m_frame; | 101 return *m_frame; |
| 102 } | 102 } |
| 103 | 103 |
| 104 void markMisspellings(const VisibleSelection&); | 104 void markMisspellings(const VisibleSelection&); |
| 105 void markMisspellingsAndBadGrammar(const VisibleSelection& spellingSelection
, bool markGrammar, const VisibleSelection& grammarSelection); | |
| 106 void markAllMisspellingsInRange(const EphemeralRange& spellingRange); | 105 void markAllMisspellingsInRange(const EphemeralRange& spellingRange); |
| 107 void spellCheckOldSelection(const VisibleSelection& oldSelection, const Visi
bleSelection& newAdjacentWords); | 106 void spellCheckOldSelection(const VisibleSelection& oldSelection, const Visi
bleSelection& newAdjacentWords); |
| 108 | 107 |
| 109 TextCheckingTypeMask resolveTextCheckingTypeMask(TextCheckingTypeMask); | 108 TextCheckingTypeMask resolveTextCheckingTypeMask(TextCheckingTypeMask); |
| 110 | 109 |
| 111 void removeMarkers(const VisibleSelection&, DocumentMarker::MarkerTypes); | 110 void removeMarkers(const VisibleSelection&, DocumentMarker::MarkerTypes); |
| 112 bool unifiedTextCheckerEnabled() const; | 111 bool unifiedTextCheckerEnabled() const; |
| 113 | 112 |
| 114 void chunkAndMarkAllMisspellingsAndBadGrammar(TextCheckingTypeMask textCheck
ingOptions, const TextCheckingParagraph& fullParagraphToCheck); | 113 void chunkAndMarkAllMisspellingsAndBadGrammar(TextCheckingTypeMask textCheck
ingOptions, const TextCheckingParagraph& fullParagraphToCheck); |
| 115 | 114 |
| 116 Member<LocalFrame> m_frame; | 115 Member<LocalFrame> m_frame; |
| 117 const Member<SpellCheckRequester> m_spellCheckRequester; | 116 const Member<SpellCheckRequester> m_spellCheckRequester; |
| 118 }; | 117 }; |
| 119 | 118 |
| 120 } // namespace blink | 119 } // namespace blink |
| 121 | 120 |
| 122 #endif // SpellChecker_h | 121 #endif // SpellChecker_h |
| OLD | NEW |