OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
yosin_UTC9
2017/06/07 01:34:15
Text suggestion is related to spell checking, coul
| |
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 TextSuggestionBackendImpl_h | |
6 #define TextSuggestionBackendImpl_h | |
7 | |
8 #include "core/CoreExport.h" | |
9 #include "platform/heap/Persistent.h" | |
10 #include "public/platform/input_messages.mojom-blink.h" | |
11 | |
12 namespace blink { | |
13 | |
14 class LocalFrame; | |
15 | |
16 class CORE_EXPORT TextSuggestionBackendImpl final | |
yosin_UTC9
2017/06/07 01:34:15
Could you add a class comment?
| |
17 : public mojom::blink::TextSuggestionBackend { | |
18 public: | |
19 explicit TextSuggestionBackendImpl(LocalFrame&); | |
20 | |
21 static void Create(LocalFrame*, mojom::blink::TextSuggestionBackendRequest); | |
22 | |
23 void ApplySpellCheckSuggestion(const WTF::String& suggestion) override; | |
24 void DeleteActiveSuggestionRange() override; | |
25 void NewWordAddedToDictionary(const WTF::String& word) override; | |
26 void SpellCheckMenuTimeoutCallback() override; | |
27 void SuggestionMenuClosed() override; | |
28 | |
29 private: | |
30 WeakPersistent<LocalFrame> frame_; | |
31 }; | |
32 | |
33 } // namespace blink | |
34 | |
35 #endif // TextSuggestionBackendImpl_h | |
OLD | NEW |