mirror of
https://github.com/electron/electron.git
synced 2026-02-26 03:01:17 -05:00
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:
@@ -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.
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user