#include "content/web_test/renderer/spell_check_client.h"
#include <stddef.h>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/task/single_thread_task_runner.h"
#include "content/web_test/renderer/web_test_grammar_checker.h"
#include "third_party/blink/public/platform/scheduler/web_agent_group_scheduler.h"
#include "third_party/blink/public/web/web_local_frame.h"
#include "third_party/blink/public/web/web_text_checking_completion.h"
#include "third_party/blink/public/web/web_text_checking_result.h"
namespace content {
SpellCheckClient::SpellCheckClient(blink::WebLocalFrame* frame)
: … { … }
SpellCheckClient::~SpellCheckClient() { … }
void SpellCheckClient::SetEnabled(bool enabled) { … }
void SpellCheckClient::Reset() { … }
bool SpellCheckClient::IsSpellCheckingEnabled() const { … }
void SpellCheckClient::CheckSpelling(
const blink::WebString& text,
size_t& misspelled_offset,
size_t& misspelled_length,
blink::WebVector<blink::WebString>* optional_suggestions) { … }
void SpellCheckClient::RequestCheckingOfText(
const blink::WebString& text,
std::unique_ptr<blink::WebTextCheckingCompletion> completion) { … }
void SpellCheckClient::FinishLastTextCheck() { … }
void SpellCheckClient::SetSpellCheckResolvedCallback(
v8::Local<v8::Function> callback) { … }
void SpellCheckClient::RemoveSpellCheckResolvedCallback() { … }
void SpellCheckClient::RequestResolved() { … }
}