Skip to content
  • andersca@apple.com's avatar
    2010-12-20 Anders Carlsson <andersca@apple.com> · 36f2f525
    andersca@apple.com authored
            Reviewed by Sam Weinig.
    
            Add a TextChecker class, hook up spelling and grammar toggling
            https://bugs.webkit.org/show_bug.cgi?id=51363
    
            * UIProcess/API/mac/WKView.mm:
            (-[WKView validateUserInterfaceItem:]):
            (-[WKView toggleContinuousSpellChecking:]):
            (-[WKView toggleGrammarChecking:]):
            * UIProcess/TextChecker.h: Added.
            * UIProcess/WebPageProxy.cpp:
            (WebKit::WebPageProxy::unmarkAllMisspellings):
            (WebKit::WebPageProxy::unmarkAllBadGrammar):
            * UIProcess/WebPageProxy.h:
            * UIProcess/mac/TextCheckerMac.mm: Added.
            (WebKit::TextChecker::isContinuousSpellCheckingAllowed):
            (WebKit::TextChecker::isContinuousSpellCheckingEnabled):
            (WebKit::TextChecker::setContinuousSpellCheckingEnabled):
            (WebKit::TextChecker::isGrammarCheckingEnabled):
            (WebKit::TextChecker::setGrammarCheckingEnabled):
            * UIProcess/qt/TextCheckerQt.cpp: Added.
            (WebKit::TextChecker::isContinuousSpellCheckingAllowed):
            (WebKit::TextChecker::isContinuousSpellCheckingEnabled):
            (WebKit::TextChecker::setContinuousSpellCheckingEnabled):
            (WebKit::TextChecker::isGrammarCheckingEnabled):
            (WebKit::TextChecker::setGrammarCheckingEnabled):
            * UIProcess/win/TextCheckerWin.cpp: Added.
            (WebKit::TextChecker::isContinuousSpellCheckingAllowed):
            (WebKit::TextChecker::isContinuousSpellCheckingEnabled):
            (WebKit::TextChecker::setContinuousSpellCheckingEnabled):
            (WebKit::TextChecker::isGrammarCheckingEnabled):
            (WebKit::TextChecker::setGrammarCheckingEnabled):
            * WebKit2.pro:
            * WebKit2.xcodeproj/project.pbxproj:
            * WebProcess/WebPage/WebPage.cpp:
            (WebKit::WebPage::unmarkAllMisspellings):
            (WebKit::WebPage::unmarkAllBadGrammar):
            * WebProcess/WebPage/WebPage.h:
            * WebProcess/WebPage/WebPage.messages.in:
            * win/WebKit2.vcproj:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74376 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    36f2f525