Call JavaScript to get spell check results

This commit is contained in:
Cheng Zhao 2014-12-18 16:44:38 -08:00
parent f1fbc5c701
commit a61331a083
3 changed files with 51 additions and 3 deletions

View file

@ -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);