summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/spellchecker/spellcheck_provider.h
diff options
context:
space:
mode:
authorshinyak@chromium.org <shinyak@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-26 08:30:08 +0000
committershinyak@chromium.org <shinyak@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-26 08:30:08 +0000
commit9d56027a1bd54cdf472fbc115688ebe24078e8d7 (patch)
tree2bdd277f5a69068aa1bfad154367766c3c98e020 /chrome/renderer/spellchecker/spellcheck_provider.h
parenta51dfe5f1b7601538cf1234b3d2b96f33a16ba35 (diff)
downloadchromium_src-9d56027a1bd54cdf472fbc115688ebe24078e8d7.zip
chromium_src-9d56027a1bd54cdf472fbc115688ebe24078e8d7.tar.gz
chromium_src-9d56027a1bd54cdf472fbc115688ebe24078e8d7.tar.bz2
In http://trac.webkit.org/changeset/105491, WebKit introduced an interface WebSpellCheckClient::checkTextOfParagraph to spellcheck.
This patch introduces the Chromium side implementation of WebSpellCheckClient::checkTextOfParagraph. This function is currently enabled only when USE_UNIFIED_TEXT_CHECKING is enable. It is currently enabled on Mac Snow Leopard or Lion, though this function will not be used in such ports. I will enable it in chromium port later. BUG=106941 TEST=SpellCheckTest.SpellCheckParagraph* Review URL: http://codereview.chromium.org/8912006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119210 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/spellchecker/spellcheck_provider.h')
-rw-r--r--chrome/renderer/spellchecker/spellcheck_provider.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/chrome/renderer/spellchecker/spellcheck_provider.h b/chrome/renderer/spellchecker/spellcheck_provider.h
index a785b12..ecd98ea 100644
--- a/chrome/renderer/spellchecker/spellcheck_provider.h
+++ b/chrome/renderer/spellchecker/spellcheck_provider.h
@@ -59,16 +59,20 @@ class SpellCheckProvider : public content::RenderViewObserver,
const WebKit::WebString& text,
int& offset,
int& length,
- WebKit::WebVector<WebKit::WebString>* optional_suggestions);
+ WebKit::WebVector<WebKit::WebString>* optional_suggestions) OVERRIDE;
+ virtual void checkTextOfParagraph(
+ const WebKit::WebString& text,
+ WebKit::WebTextCheckingTypeMask mask,
+ WebKit::WebVector<WebKit::WebTextCheckingResult>* results) OVERRIDE;
virtual void requestCheckingOfText(
const WebKit::WebString& text,
- WebKit::WebTextCheckingCompletion* completion);
+ WebKit::WebTextCheckingCompletion* completion) OVERRIDE;
virtual WebKit::WebString autoCorrectWord(
- const WebKit::WebString& misspelled_word);
- virtual void showSpellingUI(bool show);
- virtual bool isShowingSpellingUI();
+ const WebKit::WebString& misspelled_word) OVERRIDE;
+ virtual void showSpellingUI(bool show) OVERRIDE;
+ virtual bool isShowingSpellingUI() OVERRIDE;
virtual void updateSpellingUIWithMisspelledWord(
- const WebKit::WebString& word);
+ const WebKit::WebString& word) OVERRIDE;
void OnAdvanceToNextMisspelling();
void OnRespondTextCheck(