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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 FrameSelection::SetSelectionOptions); | 77 FrameSelection::SetSelectionOptions); |
78 Optional<std::pair<Node*, SpellCheckMarker*>> | 78 Optional<std::pair<Node*, SpellCheckMarker*>> |
79 GetSpellCheckMarkerUnderSelection(); | 79 GetSpellCheckMarkerUnderSelection(); |
80 String SelectMisspellingAsync(String& description); | |
yosin_UTC9
2017/07/12 05:11:48
Could you return std::pair<String, String> to avoi
| |
80 void ReplaceMisspelledRange(const String&); | 81 void ReplaceMisspelledRange(const String&); |
81 void RemoveSpellingMarkers(); | 82 void RemoveSpellingMarkers(); |
82 void RemoveSpellingMarkersUnderWords(const Vector<String>& words); | 83 void RemoveSpellingMarkersUnderWords(const Vector<String>& words); |
83 enum class ElementsType { kAll, kOnlyNonEditable }; | 84 enum class ElementsType { kAll, kOnlyNonEditable }; |
84 void RemoveSpellingAndGrammarMarkers(const HTMLElement&, | 85 void RemoveSpellingAndGrammarMarkers(const HTMLElement&, |
85 ElementsType = ElementsType::kAll); | 86 ElementsType = ElementsType::kAll); |
86 void SpellCheckAfterBlur(); | 87 void SpellCheckAfterBlur(); |
87 | 88 |
88 void DidEndEditingOnTextField(Element*); | 89 void DidEndEditingOnTextField(Element*); |
89 bool SelectionStartHasMarkerFor(DocumentMarker::MarkerType, | 90 bool SelectionStartHasMarkerFor(DocumentMarker::MarkerType, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
139 | 140 |
140 Member<LocalFrame> frame_; | 141 Member<LocalFrame> frame_; |
141 | 142 |
142 const Member<SpellCheckRequester> spell_check_requester_; | 143 const Member<SpellCheckRequester> spell_check_requester_; |
143 const Member<IdleSpellCheckCallback> idle_spell_check_callback_; | 144 const Member<IdleSpellCheckCallback> idle_spell_check_callback_; |
144 }; | 145 }; |
145 | 146 |
146 } // namespace blink | 147 } // namespace blink |
147 | 148 |
148 #endif // SpellChecker_h | 149 #endif // SpellChecker_h |
OLD | NEW |