summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/api/public/WebViewClient.h3
-rw-r--r--webkit/glue/editor_client_impl.cc3
-rw-r--r--webkit/tools/test_shell/test_webview_delegate.h1
3 files changed, 6 insertions, 1 deletions
diff --git a/webkit/api/public/WebViewClient.h b/webkit/api/public/WebViewClient.h
index fa1c987..b4e8a47 100644
--- a/webkit/api/public/WebViewClient.h
+++ b/webkit/api/public/WebViewClient.h
@@ -141,6 +141,9 @@ namespace WebKit {
// replacement is found, then an empty string is returned.
virtual WebString autoCorrectWord(const WebString& misspelledWord) = 0;
+ // Show or hide the spelling UI.
+ virtual void showSpellingUI(bool show) = 0;
+
// Update the spelling UI with the given word.
virtual void updateSpellingUIWithMisspelledWord(const WebString& word) = 0;
diff --git a/webkit/glue/editor_client_impl.cc b/webkit/glue/editor_client_impl.cc
index 888145b..6a6af6c 100644
--- a/webkit/glue/editor_client_impl.cc
+++ b/webkit/glue/editor_client_impl.cc
@@ -888,7 +888,8 @@ void EditorClientImpl::updateSpellingUIWithMisspelledWord(
}
void EditorClientImpl::showSpellingUI(bool show) {
- ASSERT_NOT_REACHED();
+ if (webview_->client())
+ webview_->client()->showSpellingUI(show);
}
bool EditorClientImpl::spellingUIIsShowing() {
diff --git a/webkit/tools/test_shell/test_webview_delegate.h b/webkit/tools/test_shell/test_webview_delegate.h
index c92ca81..f23b600 100644
--- a/webkit/tools/test_shell/test_webview_delegate.h
+++ b/webkit/tools/test_shell/test_webview_delegate.h
@@ -122,6 +122,7 @@ class TestWebViewDelegate : public WebViewDelegate,
const WebKit::WebString& text, int& offset, int& length) {}
virtual WebKit::WebString autoCorrectWord(
const WebKit::WebString& misspelled_word);
+ virtual void showSpellingUI(bool show) {}
virtual void updateSpellingUIWithMisspelledWord(
const WebKit::WebString& word) {}
virtual void runModalAlertDialog(