WebCore:
authorbdakin <bdakin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Nov 2006 01:27:16 +0000 (01:27 +0000)
committerbdakin <bdakin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 16 Nov 2006 01:27:16 +0000 (01:27 +0000)
commit423ca1d22adeed064b4c45a0a1f92c501bdcf6c0
tree176c2d525ceffa93da7d12c0484116f39e4bd907
parent5cea8a9c436614a1c3d32281e38b0c0c66a62755
WebCore:
        Reviewed by Adam and Beth.

        Initial cut at pushing Context Menus into WebCore. Nobody actually
        calls this code just yet.

        * WebCore.exp:
        * WebCore.xcodeproj/project.pbxproj:
        * page/Chrome.cpp:
        (WebCore::Chrome::addCustomContextMenuItems): Use the chrome to
        call into addContextMenuItems on the UIDelegate.
        * page/Chrome.h:
        * page/ChromeClient.h:
        * platform/ContextMenu.cpp: Added.
        (WebCore::addDefaultItems):
        (WebCore::ContextMenu::populate):
        * platform/ContextMenu.h: Added.
        (WebCore::):
        (WebCore::ContextMenuItem::ContextMenuItem):
        (WebCore::ContextMenu::ContextMenu):
        (WebCore::ContextMenu::hitTestResult):
        (WebCore::ContextMenu::platformMenuDescription):

WebKit:
        Reviewed by Adam & Beth.

        WebKit side of first cut at engine context menus. Use the client to
        call into the UIDelegate.

        * WebCoreSupport/WebChromeClient.h:
        * WebCoreSupport/WebChromeClient.mm:
        (WebChromeClient::addCustomContextMenuItems):
        * WebKit.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17796 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
WebCore/ChangeLog
WebCore/WebCore.exp
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/page/Chrome.cpp
WebCore/page/Chrome.h
WebCore/page/ChromeClient.h
WebCore/platform/ContextMenu.cpp [new file with mode: 0644]
WebCore/platform/ContextMenu.h [new file with mode: 0644]
WebKit/ChangeLog
WebKit/WebCoreSupport/WebChromeClient.h
WebKit/WebCoreSupport/WebChromeClient.mm
WebKit/WebKit.xcodeproj/project.pbxproj