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 |
| 19 public: |
| 20 explicit HotModeSpellCheckRequester(SpellCheckRequester&); |
| 21 void checkSpellingAt(const Position&); |
| 22 |
| 23 private: |
| 24 HeapVector<Member<const Element>> m_processedRootEditables; |
| 25 Member<SpellCheckRequester> m_requester; |
| 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(HotModeSpellCheckRequester); |
| 28 }; |
| 29 |
| 30 } // namespace blink |
| 31 |
| 32 #endif |
OLD | NEW |