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