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

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

Issue 2580773002: Let IdleSpellCheckCallback take full control over SpellCheckRequester (Closed)
Patch Set: Add CORE_EXPORT to IdleRequestCallback Created 4 years 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 2f1d8eb2a0db7e7c77554115639b12df0dfcead9..3d6ba6f5bdde5869ec691ca8e2ee376efd55eff1 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h
@@ -84,7 +84,7 @@ class CORE_EXPORT SpellChecker final : public GarbageCollected<SpellChecker> {
bool onlyHandleWordsContainingSelection);
void cancelCheck();
- // Exposed for testing only
+ // Exposed for testing and idle time spell checker
SpellCheckRequester& spellCheckRequester() const {
return *m_spellCheckRequester;
}
@@ -124,6 +124,9 @@ class CORE_EXPORT SpellChecker final : public GarbageCollected<SpellChecker> {
const VisibleSelection& newAdjacentWords);
Member<LocalFrame> m_frame;
+
+ // TODO(xiaochengh): Move it to IdleSpellCheckCallback after idle time spell
+ // checking reaches status=stable.
const Member<SpellCheckRequester> m_spellCheckRequester;
};

Powered by Google App Engine
This is Rietveld 408576698