WebCore:
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Nov 2006 20:56:29 +0000 (20:56 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Nov 2006 20:56:29 +0000 (20:56 +0000)
commit6bdbf60b9eea64caa709b8e8a2c28ff63081e8ef
tree016249fdd4cc7e4d098f4d955f493392e6bbae01
parent8a5bedfc9774932b52e6bcc3ed0970cdad51b045
WebCore:

        Reviewed by Darin, Beth.

        First cut at factoring Page's UIDelegate-related functions into Chrome
        and ChromeClient.

        Layout tests pass.

        * bridge/mac/PageMac.mm: Removed platform-specific constructor, added
        setBridge method to replace it.
        (WebCore::Page::setBridge):

        * bridge/mac/WebCorePageBridge.h: Simplified some things based on the fact
        that WebCorePageBridge.h doesn't need to be included by ObjC-only files,
        and, now that it uses PassRefPtr, can't be.

        * page/Chrome.cpp: Added. Code copied and converted to c++ from WebCorePageBridge.mm.

        * page/Page.h:
        (WebCore::Page::dragCaretController): Made this function non-const so that
        m_dragCaretController doesn't have to be mutable.

WebKit:

        Reviewed by Darin, Beth.

        First cut at factoring Page's UIDelegate-related functions into Chrome
        and ChromeClient.

        Layout tests pass.

        * WebCoreSupport/WebEditorClient.h:
        * WebCoreSupport/WebPageBridge.mm:
        * WebKit.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17577 268f45cc-cd09-0410-ab3c-d52691b4dbfc
18 files changed:
WebCore/ChangeLog
WebCore/WebCore.exp
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/bindings/js/kjs_window.cpp
WebCore/bridge/mac/PageMac.mm
WebCore/bridge/mac/WebCorePageBridge.h
WebCore/bridge/mac/WebCorePageBridge.mm
WebCore/loader/ResourceLoader.h
WebCore/loader/mac/ResourceLoaderMac.mm
WebCore/page/Chrome.cpp [new file with mode: 0644]
WebCore/page/Chrome.h [new file with mode: 0644]
WebCore/page/ChromeClient.h [new file with mode: 0644]
WebCore/page/Page.cpp
WebCore/page/Page.h
WebKit/ChangeLog
WebKit/WebCoreSupport/WebPageBridge.mm
WebKit/WebKit.xcodeproj/project.pbxproj
WebKit/WebView/WebView.mm