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

Unified Diff: third_party/WebKit/public/web/WebTextSuggestionController.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/web/WebTextSuggestionController.h
diff --git a/third_party/WebKit/public/web/WebTextSuggestionController.h b/third_party/WebKit/public/web/WebTextSuggestionController.h
new file mode 100644
index 0000000000000000000000000000000000000000..2e2673847d4ceb87fd0f22eee7bb7320a33d01d2
--- /dev/null
+++ b/third_party/WebKit/public/web/WebTextSuggestionController.h
@@ -0,0 +1,34 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebTextSuggestionController_h
+#define WebTextSuggestionController_h
+
+#include "../platform/WebVector.h"
+
+#include "WebTextSuggestionInfo.h"
+
+namespace blink {
+
+class WebTextSuggestionController {
+ public:
+ virtual ~WebTextSuggestionController() {}
+
+ virtual void applySuggestionReplacement(int documentMarkerID,
+ int suggestionIndex) = 0;
+ virtual void deleteSuggestionHighlight() = 0;
+ virtual void suggestionMenuClosed() = 0;
+
+ // TODO: esprehn says we don't need these two methods
+ virtual WebVector<WebTextSuggestionInfo>
+ getTextSuggestionInfosUnderCaret() = 0;
+
+ // Called to let the controller prepare for a text suggestion menu to be shown
+ // (e.g. by hiding the selection caret)
+ virtual void prepareForTextSuggestionMenuToBeShown() = 0;
+};
+
+} // namespace blink
+
+#endif
« no previous file with comments | « third_party/WebKit/public/web/WebLocalFrame.h ('k') | third_party/WebKit/public/web/WebTextSuggestionInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698