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..47f2ce64524cd32b304a434eabc4c9f83b642c05 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/editing/spellcheck/HotModeSpellCheckRequester.h |
@@ -0,0 +1,31 @@ |
+// 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(); |
+ DISALLOW_COPY_AND_ASSIGN(HotModeSpellCheckRequester); |
yosin_UTC9
2017/03/07 01:30:31
nit: I think we should put |DISALLOW_COPY_AND_ASSI
Xiaocheng
2017/03/07 01:37:19
Done. We should also clean the above two.
Btw, th
|
+ |
+ public: |
+ explicit HotModeSpellCheckRequester(SpellCheckRequester&); |
+ void checkSpellingAt(const Position&); |
+ |
+ private: |
+ HeapVector<Member<const Element>> m_processedRootEditables; |
+ Member<SpellCheckRequester> m_requester; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif |