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 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 // Implementation of mojom::blink::TextSuggestionBackend | |
17 class CORE_EXPORT TextSuggestionBackendImpl final | |
18 : public mojom::blink::TextSuggestionBackend { | |
19 public: | |
20 explicit TextSuggestionBackendImpl(LocalFrame&); | |
yosin_UTC9
2017/06/16 01:21:04
Can we make ctor to private since we have |Create|
rlanday
2017/06/16 22:16:53
We can't use MakeUnique() inside Create() if we ma
| |
21 | |
22 static void Create(LocalFrame*, mojom::blink::TextSuggestionBackendRequest); | |
23 | |
24 void ApplySpellCheckSuggestion(const String& suggestion) override; | |
25 void DeleteActiveSuggestionRange() override; | |
26 void NewWordAddedToDictionary(const String& word) override; | |
27 void SpellCheckMenuTimeoutCallback() override; | |
28 void SuggestionMenuClosed() override; | |
29 | |
30 private: | |
31 WeakPersistent<LocalFrame> frame_; | |
32 }; | |
33 | |
34 } // namespace blink | |
35 | |
36 #endif // TextSuggestionBackendImpl_h | |
OLD | NEW |