Skip to content
  • allan.jensen@digia.com's avatar
    [Qt] Open link in this window action · 04837df7
    allan.jensen@digia.com authored
    https://bugs.webkit.org/show_bug.cgi?id=101226
    
    Reviewed by Simon Hausmann.
    
    Source/WebCore:
    
    Adds the action to the WebCore context-menu controller.
    
    * page/ContextMenuController.cpp:
    (WebCore::ContextMenuController::contextMenuItemSelected):
    (WebCore::ContextMenuController::checkOrEnableIfNeeded):
    * platform/ContextMenuItem.h:
    * platform/LocalizedStrings.h:
    * platform/qt/LocalizedStringsQt.cpp:
    (WebCore::contextMenuItemTagOpenLinkInThisWindow):
    
    Source/WebKit/qt:
    
    Adds the action to QtWebKit.
    
    * Api/qwebpage.cpp:
    (webActionForContextMenuAction):
    (QWebPage::triggerAction):
    (QWebPage::action):
    * Api/qwebpage.h:
    
    Tools:
    
    Populates the context-menu with the new action when the default action is to open in a new window.
    
    * QtTestBrowser/webview.cpp:
    (createContextMenu):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133763 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    04837df7