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

Side by Side 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, 7 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 WebTextSuggestionController_h
6 #define WebTextSuggestionController_h
7
8 #include "../platform/WebVector.h"
9
10 #include "WebTextSuggestionInfo.h"
11
12 namespace blink {
13
14 class WebTextSuggestionController {
15 public:
16 virtual ~WebTextSuggestionController() {}
17
18 virtual void applySuggestionReplacement(int documentMarkerID,
19 int suggestionIndex) = 0;
20 virtual void deleteSuggestionHighlight() = 0;
21 virtual void suggestionMenuClosed() = 0;
22
23 // TODO: esprehn says we don't need these two methods
24 virtual WebVector<WebTextSuggestionInfo>
25 getTextSuggestionInfosUnderCaret() = 0;
26
27 // Called to let the controller prepare for a text suggestion menu to be shown
28 // (e.g. by hiding the selection caret)
29 virtual void prepareForTextSuggestionMenuToBeShown() = 0;
30 };
31
32 } // namespace blink
33
34 #endif
OLDNEW
« 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