Convert SpellCheckPanel SpellCheckPanelHost IPC to mojo
https://chromium-review.googlesource.com/c/chromium/src/+/515323
This commit is contained in:
parent
c6333728d9
commit
5fb0f005c5
2 changed files with 4 additions and 4 deletions
|
@ -11,8 +11,8 @@
|
||||||
#include "base/callback.h"
|
#include "base/callback.h"
|
||||||
#include "chrome/renderer/spellchecker/spellcheck_worditerator.h"
|
#include "chrome/renderer/spellchecker/spellcheck_worditerator.h"
|
||||||
#include "native_mate/scoped_persistent.h"
|
#include "native_mate/scoped_persistent.h"
|
||||||
|
#include "third_party/WebKit/public/platform/WebSpellCheckPanelHostClient.h"
|
||||||
#include "third_party/WebKit/public/platform/WebVector.h"
|
#include "third_party/WebKit/public/platform/WebVector.h"
|
||||||
#include "third_party/WebKit/public/web/WebSpellCheckClient.h"
|
|
||||||
#include "third_party/WebKit/public/web/WebTextCheckClient.h"
|
#include "third_party/WebKit/public/web/WebTextCheckClient.h"
|
||||||
|
|
||||||
namespace blink {
|
namespace blink {
|
||||||
|
@ -24,7 +24,7 @@ namespace atom {
|
||||||
|
|
||||||
namespace api {
|
namespace api {
|
||||||
|
|
||||||
class SpellCheckClient : public blink::WebSpellCheckClient,
|
class SpellCheckClient : public blink::WebSpellCheckPanelHostClient,
|
||||||
public blink::WebTextCheckClient {
|
public blink::WebTextCheckClient {
|
||||||
public:
|
public:
|
||||||
SpellCheckClient(const std::string& language,
|
SpellCheckClient(const std::string& language,
|
||||||
|
@ -44,7 +44,7 @@ class SpellCheckClient : public blink::WebSpellCheckClient,
|
||||||
const blink::WebString& textToCheck,
|
const blink::WebString& textToCheck,
|
||||||
blink::WebTextCheckingCompletion* completionCallback) override;
|
blink::WebTextCheckingCompletion* completionCallback) override;
|
||||||
|
|
||||||
// blink::WebSpellCheckClient:
|
// blink::WebSpellCheckPanelHostClient:
|
||||||
void ShowSpellingUI(bool show) override;
|
void ShowSpellingUI(bool show) override;
|
||||||
bool IsShowingSpellingUI() override;
|
bool IsShowingSpellingUI() override;
|
||||||
void UpdateSpellingUIWithMisspelledWord(
|
void UpdateSpellingUIWithMisspelledWord(
|
||||||
|
|
|
@ -141,7 +141,7 @@ void WebFrame::SetSpellCheckProvider(mate::Arguments* args,
|
||||||
|
|
||||||
spell_check_client_.reset(new SpellCheckClient(
|
spell_check_client_.reset(new SpellCheckClient(
|
||||||
language, auto_spell_correct_turned_on, args->isolate(), provider));
|
language, auto_spell_correct_turned_on, args->isolate(), provider));
|
||||||
web_frame_->View()->SetSpellCheckClient(spell_check_client_.get());
|
web_frame_->SetSpellCheckPanelHostClient(spell_check_client_.get());
|
||||||
web_frame_->SetTextCheckClient(spell_check_client_.get());
|
web_frame_->SetTextCheckClient(spell_check_client_.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue