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

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: Mon Mar 6 12:22:30 PST 2017 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..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

Powered by Google App Engine
This is Rietveld 408576698