Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |