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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef HotModeSpellCheckRequester_h
6 #define HotModeSpellCheckRequester_h
7
8 #include "core/editing/Position.h"
9
10 namespace blink {
11
12 class SpellCheckRequester;
13
14 // This class is only supposed to be used by IdleSpellCheckCallback in hot mode
15 // invocation. Not to be confused with SpellCheckRequester.
16 class HotModeSpellCheckRequester {
17 STACK_ALLOCATED();
18 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
19
20 public:
21 explicit HotModeSpellCheckRequester(SpellCheckRequester&);
22 void checkSpellingAt(const Position&);
23
24 private:
25 HeapVector<Member<const Element>> m_processedRootEditables;
26 Member<SpellCheckRequester> m_requester;
27 };
28
29 } // namespace blink
30
31 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698