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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void advanceToNextMisspelling(bool startBeforeSelection = false); | 66 void advanceToNextMisspelling(bool startBeforeSelection = false); |
67 void showSpellingGuessPanel(); | 67 void showSpellingGuessPanel(); |
68 void didBeginEditing(Element*); | 68 void didBeginEditing(Element*); |
69 void clearMisspellingsForMovingParagraphs(const VisibleSelection&); | 69 void clearMisspellingsForMovingParagraphs(const VisibleSelection&); |
70 void markMisspellingsForMovingParagraphs(const VisibleSelection&); | 70 void markMisspellingsForMovingParagraphs(const VisibleSelection&); |
71 void respondToChangedSelection(const Position& oldSelectionStart, | 71 void respondToChangedSelection(const Position& oldSelectionStart, |
72 FrameSelection::SetSelectionOptions); | 72 FrameSelection::SetSelectionOptions); |
73 void replaceMisspelledRange(const String&); | 73 void replaceMisspelledRange(const String&); |
74 void removeSpellingMarkers(); | 74 void removeSpellingMarkers(); |
75 void removeSpellingMarkersUnderWords(const Vector<String>& words); | 75 void removeSpellingMarkersUnderWords(const Vector<String>& words); |
| 76 enum class ElementsType { kAll, kOnlyNonEditable }; |
| 77 void removeSpellingAndGrammarMarkers(const HTMLElement&, |
| 78 ElementsType = ElementsType::kAll); |
76 void spellCheckAfterBlur(); | 79 void spellCheckAfterBlur(); |
77 | 80 |
78 void didEndEditingOnTextField(Element*); | 81 void didEndEditingOnTextField(Element*); |
79 bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, | 82 bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, |
80 int from, | 83 int from, |
81 int length) const; | 84 int length) const; |
82 bool selectionStartHasSpellingMarkerFor(int from, int length) const; | 85 bool selectionStartHasSpellingMarkerFor(int from, int length) const; |
83 void updateMarkersForWordsAffectedByEditing( | 86 void updateMarkersForWordsAffectedByEditing( |
84 bool onlyHandleWordsContainingSelection); | 87 bool onlyHandleWordsContainingSelection); |
85 void cancelCheck(); | 88 void cancelCheck(); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 Member<LocalFrame> m_frame; | 129 Member<LocalFrame> m_frame; |
127 | 130 |
128 // TODO(xiaochengh): Move it to IdleSpellCheckCallback after idle time spell | 131 // TODO(xiaochengh): Move it to IdleSpellCheckCallback after idle time spell |
129 // checking reaches status=stable. | 132 // checking reaches status=stable. |
130 const Member<SpellCheckRequester> m_spellCheckRequester; | 133 const Member<SpellCheckRequester> m_spellCheckRequester; |
131 }; | 134 }; |
132 | 135 |
133 } // namespace blink | 136 } // namespace blink |
134 | 137 |
135 #endif // SpellChecker_h | 138 #endif // SpellChecker_h |
OLD | NEW |