• beidson@apple.com's avatar
    <rdar://problem/8613779> and https://bugs.webkit.org/show_bug.cgi?id=50777 · 4b0f5936
    beidson@apple.com authored
    WebKit2 ContextMenuClient support
    
    Reviewed by Anders Carlsson.
    
    WebCore: 
    
    Export some symbols and headers needed by WebKit2 Mac:
    * WebCore.exp.in:
    * WebCore.xcodeproj/project.pbxproj:
    
    WebKit2: 
    
    Implement google search in a cross platform manner, and add a FIXME for download support:
    * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
    (WebKit::WebContextMenuClient::downloadURL):
    (WebKit::WebContextMenuClient::searchWithGoogle):
    
    Mac implementations for speaking and searching:
    * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm: Added.
    (WebKit::WebContextMenuClient::lookUpInDictionary): Add a FIXME for now.
    (WebKit::WebContextMenuClient::isSpeaking):
    (WebKit::WebContextMenuClient::speak):
    (WebKit::WebContextMenuClient::stopSpeaking):
    (WebKit::WebContextMenuClient::searchWithSpotlight):
    
    Stubs for Win and Qt:
    * WebProcess/WebCoreSupport/qt/WebContextMenuClientQt.cpp: Added.
    (WebKit::WebContextMenuClient::lookUpInDictionary):
    (WebKit::WebContextMenuClient::isSpeaking):
    (WebKit::WebContextMenuClient::speak):
    (WebKit::WebContextMenuClient::stopSpeaking):
    * WebProcess/WebCoreSupport/win/WebContextMenuClientWin.cpp: Added.
    (WebKit::WebContextMenuClient::lookUpInDictionary):
    (WebKit::WebContextMenuClient::isSpeaking):
    (WebKit::WebContextMenuClient::speak):
    (WebKit::WebContextMenuClient::stopSpeaking):
    
    Project file stuffs:
    * WebKit2.pro:
    * WebKit2.xcodeproj/project.pbxproj:
    * win/WebKit2.vcproj:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73643 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    4b0f5936
WebContextMenuClientQt.cpp 1.73 KB