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 |