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 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 |
OLD | NEW |