Skip to content
  • timothy@apple.com's avatar
    Update the order of the context menu to better match AppKit on Mac. · fac725ca
    timothy@apple.com authored
    <rdar://problem/9054893>
    
    Reviewed by John Sullivan.
    
    Source/WebCore:
    
    * English.lproj/Localizable.strings: Updated.
    * page/ContextMenuController.cpp:
    (WebCore::ContextMenuController::populate): Update the order of items on Mac.
    * platform/LocalizationStrategy.h:
    * platform/LocalizedStrings.cpp:
    (WebCore::contextMenuItemTagLookUpInDictionary): Added argument for selected string.
    * platform/LocalizedStrings.h:
    * platform/android/LocalizedStringsAndroid.cpp:
    (WebCore::contextMenuItemTagLookUpInDictionary): Ditto.
    * platform/brew/LocalizedStringsBrew.cpp:
    (WebCore::contextMenuItemTagLookUpInDictionary): Ditto.
    * platform/efl/LocalizedStringsEfl.cpp:
    (WebCore::contextMenuItemTagLookUpInDictionary): Ditto.
    * platform/gtk/LocalizedStringsGtk.cpp:
    (WebCore::contextMenuItemTagLookUpInDictionary): Ditto.
    * platform/haiku/LocalizedStringsHaiku.cpp:
    (WebCore::contextMenuItemTagLookUpInDictionary): Ditto.
    * platform/wx/LocalizedStringsWx.cpp:
    (WebCore::contextMenuItemTagLookUpInDictionary): Ditto.
    
    Source/WebKit/mac:
    
    * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
    (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): Update the order of items.
    * WebCoreSupport/WebPlatformStrategies.h:
    * WebCoreSupport/WebPlatformStrategies.mm:
    (WebPlatformStrategies::contextMenuItemTagLookUpInDictionary): Added argument for selected string.
    
    Source/WebKit2:
    
    * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
    (WebKit::WebPlatformStrategies::contextMenuItemTagLookUpInDictionary): Added argument for selected string.
    * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@82337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    fac725ca