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

Side by Side Diff: third_party/WebKit/Source/core/editing/suggestion/TextSuggestionBackendImpl.h

Issue 2931443003: Add support for Android spellcheck menu in Chrome/WebViews (Closed)
Patch Set: Consolidate mContentView and mContainerView Created 3 years, 5 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 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 static void Create(LocalFrame*, mojom::blink::TextSuggestionBackendRequest);
21
22 void ApplySpellCheckSuggestion(const String& suggestion) final;
23 void DeleteActiveSuggestionRange() final;
24 void NewWordAddedToDictionary(const String& word) final;
25 void SpellCheckMenuTimeoutCallback() final;
26 void SuggestionMenuClosed() final;
27
28 private:
29 explicit TextSuggestionBackendImpl(LocalFrame&);
30
31 WeakPersistent<LocalFrame> frame_;
32
33 DISALLOW_COPY_AND_ASSIGN(TextSuggestionBackendImpl);
34 };
35
36 } // namespace blink
37
38 #endif // TextSuggestionBackendImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698