Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1284)

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h

Issue 2978823002: [SelectMiss...Async #2] Change ContextMenuClient::SelectMisspellingAsync() to return pair of strings (Closed)
Patch Set: Rebase Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h
index 5c057b673b20ce29672e57dd5fbb1a7a517fa659..7aa16c268c650474eba5bfcf3ee3c9a4459d9b25 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h
@@ -77,7 +77,9 @@ class CORE_EXPORT SpellChecker final : public GarbageCollected<SpellChecker> {
TypingContinuation);
Optional<std::pair<Node*, SpellCheckMarker*>>
GetSpellCheckMarkerUnderSelection();
- String SelectMisspellingAsync(String& description);
+ // The first String returned in the pair is the selected text.
+ // The second String is the marker's description.
+ std::pair<String, String> SelectMisspellingAsync();
void ReplaceMisspelledRange(const String&);
void RemoveSpellingMarkers();
void RemoveSpellingMarkersUnderWords(const Vector<String>& words);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698