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

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

Issue 2650113004: [WIP] Add support for Android SuggestionSpans when editing text (Closed)
Patch Set: Uploading the latest version from my repo so I can reference it Created 3 years, 8 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 TextSuggestionBackendImplAndroid_h
6 #define TextSuggestionBackendImplAndroid_h
7
8 #include "core/CoreExport.h"
9 #include "core/editing/TextSuggestionController.h"
10 #include "mojo/public/cpp/bindings/strong_binding.h"
11 #include "platform/heap/Persistent.h"
12 #include "public/platform/input_messages.mojom-blink.h"
13
14 namespace blink {
15
16 class LocalFrame;
17 class TextSuggestionController;
18
19 class CORE_EXPORT TextSuggestionBackendImplAndroid final
20 : public mojom::blink::TextSuggestionBackend {
21 public:
22 explicit TextSuggestionBackendImplAndroid(LocalFrame&);
23
24 static void create(LocalFrame*, mojom::blink::TextSuggestionBackendRequest);
25
26 void ApplySuggestionReplacement(int64_t document_marker_hash,
27 int32_t suggestion_index) override;
28 void DeleteSuggestionHighlight() override;
29 void SuggestionMenuClosed() override;
30
31 private:
32 WeakPersistent<LocalFrame> m_frame;
33 };
34
35 } // namespace blink
36
37 #endif // TextSuggestionBackendImplAndroid_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698