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

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

Issue 2701983002: Implement complete lifecycle transition for IdleSpellCheckCallback (Closed)
Patch Set: Fix compiler error Created 3 years, 10 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
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 2fd2cf82de925f69668a81dc1abf7e75cdd9d59d..ee43c79efcbe1aff32e5897e9299f512f96131a5 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h
@@ -69,6 +69,7 @@ class CORE_EXPORT SpellChecker final : public GarbageCollected<SpellChecker> {
void didBeginEditing(Element*);
void clearMisspellingsForMovingParagraphs(const VisibleSelection&);
void markMisspellingsForMovingParagraphs(const VisibleSelection&);
+ void respondToChangedContents();
void respondToChangedSelection(const Position& oldSelectionStart,
FrameSelection::SetSelectionOptions);
void replaceMisspelledRange(const String&);
@@ -92,6 +93,9 @@ class CORE_EXPORT SpellChecker final : public GarbageCollected<SpellChecker> {
SpellCheckRequester& spellCheckRequester() const {
return *m_spellCheckRequester;
}
+ IdleSpellCheckCallback& idleSpellCheckCallback() const {
+ return *m_idleSpellCheckCallback;
+ }
// The leak detector will report leaks should queued requests be posted
// while it GCs repeatedly, as the requests keep their associated element
@@ -101,6 +105,8 @@ class CORE_EXPORT SpellChecker final : public GarbageCollected<SpellChecker> {
// ensure leak reporting stability.
void prepareForLeakDetection();
+ void documentAttached(Document*);
+
private:
explicit SpellChecker(LocalFrame&);

Powered by Google App Engine
This is Rietveld 408576698