mirror of
https://github.com/electron/electron.git
synced 2026-02-19 03:14:51 -05:00
7509043: update WebSpellingMarker type for API change
The upstream Chromium API changed - WebSpellingMarker was moved from a nested type within WebTextCheckClient to a standalone type in the blink namespace. Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7509043
This commit is contained in:
@@ -91,8 +91,7 @@ SpellCheckClient::~SpellCheckClient() {
|
||||
|
||||
void SpellCheckClient::RequestCheckingOfText(
|
||||
const blink::WebString& text_to_check,
|
||||
const std::vector<
|
||||
WebTextCheckClient::WebSpellingMarker>& /* spelling_markers */,
|
||||
const std::vector<blink::WebSpellingMarker>& /* spelling_markers */,
|
||||
ShouldForceRefreshTextCheckService /* should_force_refresh */,
|
||||
std::unique_ptr<blink::WebTextCheckingCompletion> completion_callback) {
|
||||
std::u16string text(text_to_check.Utf16());
|
||||
|
||||
@@ -44,8 +44,7 @@ class SpellCheckClient : public blink::WebSpellCheckPanelHostClient,
|
||||
// blink::WebTextCheckClient:
|
||||
void RequestCheckingOfText(
|
||||
const blink::WebString& text_to_check,
|
||||
const std::vector<WebTextCheckClient::WebSpellingMarker>&
|
||||
spelling_markers,
|
||||
const std::vector<blink::WebSpellingMarker>& spelling_markers,
|
||||
ShouldForceRefreshTextCheckService should_force_refresh,
|
||||
std::unique_ptr<blink::WebTextCheckingCompletion> completion_callback)
|
||||
override;
|
||||
|
||||
Reference in New Issue
Block a user