Call JavaScript to get spell check results
This commit is contained in:
parent
f1fbc5c701
commit
a61331a083
3 changed files with 51 additions and 3 deletions
|
@ -40,6 +40,12 @@ class SpellCheckClient : public blink::WebSpellCheckClient {
|
|||
void updateSpellingUIWithMisspelledWord(
|
||||
const blink::WebString& word) override;
|
||||
|
||||
template<class T>
|
||||
bool CallProviderMethod(const char* method,
|
||||
const blink::WebString& text,
|
||||
T* result);
|
||||
|
||||
v8::Isolate* isolate_;
|
||||
mate::ScopedPersistent<v8::Object> provider_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(SpellCheckClient);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue