fix: add force-refresh parameter to RequestCheckingOfText

Upstream added ShouldForceRefreshTextCheckService parameter to
RequestCheckingOfText to allow bypassing the spell check cache.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7126479
This commit is contained in:
Samuel Attard
2025-11-22 02:39:13 -08:00
parent 4a7747b53a
commit dd74d2102c
2 changed files with 6 additions and 3 deletions

View File

@@ -91,6 +91,7 @@ SpellCheckClient::~SpellCheckClient() {
void SpellCheckClient::RequestCheckingOfText(
const blink::WebString& textToCheck,
ShouldForceRefreshTextCheckService should_force_refresh,
std::unique_ptr<blink::WebTextCheckingCompletion> completionCallback) {
std::u16string text(textToCheck.Utf16());
// Ignore invalid requests.

View File

@@ -41,9 +41,11 @@ class SpellCheckClient : public blink::WebSpellCheckPanelHostClient,
private:
class SpellcheckRequest;
// blink::WebTextCheckClient:
void RequestCheckingOfText(const blink::WebString& textToCheck,
std::unique_ptr<blink::WebTextCheckingCompletion>
completionCallback) override;
void RequestCheckingOfText(
const blink::WebString& textToCheck,
ShouldForceRefreshTextCheckService should_force_refresh,
std::unique_ptr<blink::WebTextCheckingCompletion> completionCallback)
override;
bool IsSpellCheckingEnabled() const override;
// blink::WebSpellCheckPanelHostClient: