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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 void MarkMisspellingsAfterApplyingCommand(const CompositeEditCommand&); | 69 void MarkMisspellingsAfterApplyingCommand(const CompositeEditCommand&); |
70 void MarkAndReplaceFor(SpellCheckRequest*, const Vector<TextCheckingResult>&); | 70 void MarkAndReplaceFor(SpellCheckRequest*, const Vector<TextCheckingResult>&); |
71 void AdvanceToNextMisspelling(bool start_before_selection); | 71 void AdvanceToNextMisspelling(bool start_before_selection); |
72 void ShowSpellingGuessPanel(); | 72 void ShowSpellingGuessPanel(); |
73 void DidBeginEditing(Element*); | 73 void DidBeginEditing(Element*); |
74 void MarkMisspellingsForMovingParagraphs(const VisibleSelection&); | 74 void MarkMisspellingsForMovingParagraphs(const VisibleSelection&); |
75 void RespondToChangedContents(); | 75 void RespondToChangedContents(); |
76 void RespondToChangedSelection(const Position& old_selection_start, | 76 void RespondToChangedSelection(const Position& old_selection_start, |
77 TypingContinuation); | 77 TypingContinuation); |
78 Optional<std::pair<Node*, SpellCheckMarker*>> | 78 Optional<std::pair<Node*, SpellCheckMarker*>> |
79 GetSpellCheckMarkerTouchingSelection(); | 79 GetSpellCheckMarkerUnderSelection(); |
80 void ReplaceMisspelledRange(const String&); | 80 void ReplaceMisspelledRange(const String&); |
81 void RemoveSpellingMarkers(); | 81 void RemoveSpellingMarkers(); |
82 void RemoveSpellingMarkersUnderWords(const Vector<String>& words); | 82 void RemoveSpellingMarkersUnderWords(const Vector<String>& words); |
83 enum class ElementsType { kAll, kOnlyNonEditable }; | 83 enum class ElementsType { kAll, kOnlyNonEditable }; |
84 void RemoveSpellingAndGrammarMarkers(const HTMLElement&, | 84 void RemoveSpellingAndGrammarMarkers(const HTMLElement&, |
85 ElementsType = ElementsType::kAll); | 85 ElementsType = ElementsType::kAll); |
86 void SpellCheckAfterBlur(); | 86 void SpellCheckAfterBlur(); |
87 | 87 |
88 void DidEndEditingOnTextField(Element*); | 88 void DidEndEditingOnTextField(Element*); |
89 bool SelectionStartHasMarkerFor(DocumentMarker::MarkerType, | 89 bool SelectionStartHasMarkerFor(DocumentMarker::MarkerType, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 Member<LocalFrame> frame_; | 140 Member<LocalFrame> frame_; |
141 | 141 |
142 const Member<SpellCheckRequester> spell_check_requester_; | 142 const Member<SpellCheckRequester> spell_check_requester_; |
143 const Member<IdleSpellCheckCallback> idle_spell_check_callback_; | 143 const Member<IdleSpellCheckCallback> idle_spell_check_callback_; |
144 }; | 144 }; |
145 | 145 |
146 } // namespace blink | 146 } // namespace blink |
147 | 147 |
148 #endif // SpellChecker_h | 148 #endif // SpellChecker_h |
OLD | NEW |