Convert SpellCheckPanel SpellCheckPanelHost IPC to mojo

https://chromium-review.googlesource.com/c/chromium/src/+/515323
This commit is contained in:
Aleksei Kuzmin 2017-08-25 14:23:13 +03:00 committed by Cheng Zhao
parent c6333728d9
commit 5fb0f005c5
2 changed files with 4 additions and 4 deletions

View file

@ -11,8 +11,8 @@
#include "base/callback.h"
#include "chrome/renderer/spellchecker/spellcheck_worditerator.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/web/WebSpellCheckClient.h"
#include "third_party/WebKit/public/web/WebTextCheckClient.h"
namespace blink {
@ -24,7 +24,7 @@ namespace atom {
namespace api {
class SpellCheckClient : public blink::WebSpellCheckClient,
class SpellCheckClient : public blink::WebSpellCheckPanelHostClient,
public blink::WebTextCheckClient {
public:
SpellCheckClient(const std::string& language,
@ -44,7 +44,7 @@ class SpellCheckClient : public blink::WebSpellCheckClient,
const blink::WebString& textToCheck,
blink::WebTextCheckingCompletion* completionCallback) override;
// blink::WebSpellCheckClient:
// blink::WebSpellCheckPanelHostClient:
void ShowSpellingUI(bool show) override;
bool IsShowingSpellingUI() override;
void UpdateSpellingUIWithMisspelledWord(

View file

@ -141,7 +141,7 @@ void WebFrame::SetSpellCheckProvider(mate::Arguments* args,
spell_check_client_.reset(new SpellCheckClient(
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());
}