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

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

Issue 2720193002: Implement hot mode invocation for idle time spell checker (Closed)
Patch Set: style fix Created 3 years, 9 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/HotModeSpellCheckRequester.h
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/HotModeSpellCheckRequester.h b/third_party/WebKit/Source/core/editing/spellcheck/HotModeSpellCheckRequester.h
new file mode 100644
index 0000000000000000000000000000000000000000..363990e9b512ef9ffa95ca33e59e6d7cd5bc6fda
--- /dev/null
+++ b/third_party/WebKit/Source/core/editing/spellcheck/HotModeSpellCheckRequester.h
@@ -0,0 +1,32 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef HotModeSpellCheckRequester_h
+#define HotModeSpellCheckRequester_h
+
+#include "core/editing/Position.h"
+
+namespace blink {
+
+class SpellCheckRequester;
+
+// This class is only supposed to be used by IdleSpellCheckCallback in hot mode
+// invocation. Not to be confused with SpellCheckRequester.
+class HotModeSpellCheckRequester {
+ STACK_ALLOCATED();
+
+ public:
+ explicit HotModeSpellCheckRequester(SpellCheckRequester&);
+ void checkSpellingAt(const Position&);
+
+ private:
+ HeapVector<Member<const Element>> m_processedRootEditables;
+ Member<SpellCheckRequester> m_requester;
+
+ DISALLOW_COPY_AND_ASSIGN(HotModeSpellCheckRequester);
+};
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698