1. 26 Jul, 2010 1 commit
    • weinig@apple.com's avatar
      Fix for https://bugs.webkit.org/show_bug.cgi?id=42986 · 2b77bec1
      weinig@apple.com authored
      Add prompt and confirm client functions to WebKit2
      
      Reviewed by Anders Carlsson.
      
      WebKit2: 
      
      * Shared/CoreIPCSupport/WebPageProxyMessageKinds.h:
      (WebPageProxyMessage::):
      * UIProcess/API/C/WKPage.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::didReceiveSyncMessage):
      (WebKit::WebPageProxy::runJavaScriptAlert):
      (WebKit::WebPageProxy::runJavaScriptConfirm):
      (WebKit::WebPageProxy::runJavaScriptPrompt):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebUIClient.cpp:
      (WebKit::WebUIClient::runJavaScriptAlert):
      (WebKit::WebUIClient::runJavaScriptConfirm):
      (WebKit::WebUIClient::runJavaScriptPrompt):
      * UIProcess/WebUIClient.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::runJavaScriptConfirm):
      (WebKit::WebChromeClient::runJavaScriptPrompt):
      
      WebKitTools: 
      
      * MiniBrowser/mac/BrowserWindowController.m:
      (-[BrowserWindowController awakeFromNib]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64065 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b77bec1
  2. 21 Jul, 2010 1 commit
    • simon.fraser@apple.com's avatar
      2010-07-21 Simon Fraser <simon.fraser@apple.com> · 675a76fe
      simon.fraser@apple.com authored
              Reviewed by Anders Carlsson.
      
              Get accelerated compositing working with webkit2
              https://bugs.webkit.org/show_bug.cgi?id=41084
      
              Hook up dynamic DrawingArea switching, so that when the WebProcess hits a page
              that requires accelerated compositing, we switch to the LayerBackedDrawingArea.
      
              * Shared/CoreIPCSupport/DrawingAreaProxyMessageKinds.h:
              (DrawingAreaProxyMessage::):
              * Shared/CoreIPCSupport/WebPageProxyMessageKinds.h:
              (WebPageProxyMessage::):
              * UIProcess/API/mac/PageClientImpl.h:
              * UIProcess/API/mac/PageClientImpl.mm:
              (WebKit::PageClientImpl::pageDidEnterAcceleratedCompositing):
              (WebKit::PageClientImpl::pageDidLeaveAcceleratedCompositing):
              * UIProcess/API/mac/WKView.mm:
              (-[WKView _startAcceleratedCompositing:]):
              (-[WKView _switchToDrawingAreaTypeIfNecessary:DrawingAreaProxy::]):
              (-[WKView _pageDidEnterAcceleratedCompositing]):
              (-[WKView _pageDidLeaveAcceleratedCompositing]):
              * UIProcess/API/mac/WKViewInternal.h:
              * UIProcess/ChunkedUpdateDrawingAreaProxy.cpp:
              (WebKit::ChunkedUpdateDrawingAreaProxy::didReceiveSyncMessage):
              * UIProcess/ChunkedUpdateDrawingAreaProxy.h:
              * UIProcess/DrawingAreaProxy.h:
              (WebKit::DrawingAreaProxy::):
              (WebKit::DrawingAreaProxy::type):
              * UIProcess/LayerBackedDrawingAreaProxy.cpp:
              (WebKit::LayerBackedDrawingAreaProxy::didSetSize):
              (WebKit::LayerBackedDrawingAreaProxy::didReceiveMessage):
              (WebKit::LayerBackedDrawingAreaProxy::didReceiveSyncMessage):
              * UIProcess/LayerBackedDrawingAreaProxy.h:
              * UIProcess/PageClient.h:
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::setDrawingArea):
              (WebKit::WebPageProxy::didReceiveSyncMessage):
              (WebKit::WebPageProxy::didEnterAcceleratedCompositing):
              (WebKit::WebPageProxy::didLeaveAcceleratedCompositing):
              * UIProcess/WebPageProxy.h:
              * UIProcess/mac/LayerBackedDrawingAreaProxyMac.mm:
              (WebKit::LayerBackedDrawingAreaProxy::attachCompositingContext):
              * WebProcess/WebCoreSupport/WebChromeClient.cpp:
              (WebKit::WebChromeClient::attachRootGraphicsLayer):
              * WebProcess/WebPage/ChunkedUpdateDrawingArea.h:
              (WebKit::ChunkedUpdateDrawingArea::attachCompositingContext):
              (WebKit::ChunkedUpdateDrawingArea::setRootCompositingLayer):
              * WebProcess/WebPage/DrawingArea.cpp:
              (WebKit::DrawingArea::create):
              * WebProcess/WebPage/DrawingArea.h:
              (WebKit::DrawingArea::):
              (WebKit::DrawingArea::type):
              * WebProcess/WebPage/LayerBackedDrawingArea.cpp:
              (WebKit::LayerBackedDrawingArea::LayerBackedDrawingArea):
              (WebKit::LayerBackedDrawingArea::setNeedsDisplay):
              (WebKit::LayerBackedDrawingArea::setSize):
              (WebKit::LayerBackedDrawingArea::didUpdate):
              (WebKit::LayerBackedDrawingArea::setRootCompositingLayer):
              * WebProcess/WebPage/LayerBackedDrawingArea.h:
              * WebProcess/WebPage/WebPage.cpp:
              (WebKit::WebPage::changeAcceleratedCompositingMode):
              (WebKit::WebPage::enterAcceleratedCompositingMode):
              (WebKit::WebPage::exitAcceleratedCompositingMode):
              * WebProcess/WebPage/WebPage.h:
              * WebProcess/WebPage/mac/LayerBackedDrawingAreaMac.mm:
              (WebKit::LayerBackedDrawingArea::platformInit):
              (WebKit::LayerBackedDrawingArea::attachCompositingContext):
              (WebKit::LayerBackedDrawingArea::detachCompositingContext):
              (WebKit::LayerBackedDrawingArea::setRootCompositingLayer):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      675a76fe
  3. 16 Jul, 2010 1 commit
    • weinig@apple.com's avatar
      Fix for https://bugs.webkit.org/show_bug.cgi?id=42482 · 9df6052a
      weinig@apple.com authored
      <rdar://problem/8197701>
      Add notification of when the BackForwardList changes
      to aid invalidation of Back/Forward related UI elements.
      
      Reviewed by Anders Carlsson.
      
      WebKit2: 
      
      * UIProcess/API/C/WKPage.h:
      Add didChangeBackForwardList to the WKPageLoaderClient. This 
      fires whenever an item is added or removed from the back forward
      list or when the cursor changes position.
      
      * UIProcess/WebBackForwardList.cpp:
      (WebKit::WebBackForwardList::addItem):
      (WebKit::WebBackForwardList::goToItem):
      * UIProcess/WebLoaderClient.cpp:
      (WebKit::WebLoaderClient::didChangeBackForwardList):
      * UIProcess/WebLoaderClient.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::didChangeBackForwardList):
      * UIProcess/WebPageProxy.h:
      Pipe changes to the WebBackForwardList up to the page load client.
      
      WebKitTools: 
      
      * MiniBrowser/mac/BrowserWindowController.m:
      (_didStartProvisionalLoadForFrame):
      (_didCommitLoadForFrame):
      (_didFailLoadWithErrorForFrame):
      (_didChangeBackForwardList):
      (-[BrowserWindowController awakeFromNib]):
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63590 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9df6052a
  4. 15 Jul, 2010 1 commit
    • weinig@apple.com's avatar
      Patch for https://bugs.webkit.org/show_bug.cgi?id=42396 · 1a4ca330
      weinig@apple.com authored
      Give the navigation type in the policy client callbacks meaning. 
      
      Reviewed by Anders Carlsson.
      
      - Use the new WKFrameNavigationType instead of just uint32_t.
      
      * UIProcess/API/C/WKAPICast.h:
      (toWK):
      Add conversion method from WebCore::NavigationType to WKFrameNavigationType.
      * UIProcess/API/C/WKPage.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::didReceiveMessage):
      (WebKit::WebPageProxy::decidePolicyForNavigationAction):
      (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPolicyClient.cpp:
      (WebKit::WebPolicyClient::decidePolicyForNavigationAction):
      (WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
      * UIProcess/WebPolicyClient.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63455 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1a4ca330
  5. 14 Jul, 2010 2 commits
    • weinig@apple.com's avatar
      Patch for https://bugs.webkit.org/show_bug.cgi?id=42297 · 7b77c6b9
      weinig@apple.com authored
      <rdar://problem/8187355>
      Make titles in WebBackForwardListItems work.
      
      Reviewed by Darin Adler.
      
      - Make WebBackForwardListItemMap per WebProcessProxy to allow updating
        them separate from a page. They are conceptually per process anyway.
      - Add a message to add or update a WebBackForwardListItemMap triggered
        by the WebCore::notifyHistoryItemChanged mechanism.
      
      * Shared/CoreIPCSupport/WebProcessProxyMessageKinds.h:
      (WebProcessProxyMessage::):
      Add AddOrUpdateBackForwardItem message.
      
      * UIProcess/WebBackForwardListItem.h:
      (WebKit::WebBackForwardListItem::setOriginalURL):
      (WebKit::WebBackForwardListItem::setURL):
      (WebKit::WebBackForwardListItem::setTitle):
      Add setters.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::didReceiveMessage):
      BackForwardAddItem now assumes the item has already been created, so
      now just forwards the add message onto the WebBackForwardList.
      
      (WebKit::WebPageProxy::addItemToBackForwardList): Take a WebBackForwardList instead of an ID.
      (WebKit::WebPageProxy::goToItemInBackForwardList): Ditto.
      * UIProcess/WebPageProxy.h: Ditto.
      
      * UIProcess/WebProcessProxy.cpp:
      (WebKit::WebProcessProxy::webBackForwardItem):
      (WebKit::WebProcessProxy::addOrUpdateBackForwardListItem):
      (WebKit::WebProcessProxy::didReceiveMessage):
      (WebKit::WebProcessProxy::didReceiveSyncMessage):
      * UIProcess/WebProcessProxy.h:
      Have the WebProcessProxy manage the WebBackForwardListItems.
      
      * WebProcess/WebPage/WebBackForwardListProxy.cpp:
      (WebKit::updateBackForwardItem):
      (WebKit::WK2NotifyHistoryItemChanged): Use this to notify UIProcess
      of HistoryItem changes (such as the title being added).
      (WebKit::WebBackForwardListProxy::WebBackForwardListProxy):
      Register the notifyHistoryItemChanged function.
      (WebKit::WebBackForwardListProxy::addItem):
      Just send the ID as the updateBackForwardItem is already going to have
      been called by this time.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63362 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b77c6b9
    • weinig@apple.com's avatar
      Patch for https://bugs.webkit.org/show_bug.cgi?id=42232 · ee7d0271
      weinig@apple.com authored
      Make changing Cursors work in WebKit2.
      
      Reviewed by Darin Adler.
      
      WebCore: 
      
      - Converted Mac and Windows Cursor implementations to lazily
        create the platform cursor.
      - Add HostWindow function to set the cursor and use it from Widget::setCursor.
      - Rework Windows cursor code to use fewer global variables.
      
      * WebCore.exp.in: Updated
      * loader/EmptyClients.h:
      (WebCore::EmptyChromeClient::setCursor): 
      (WebCore::EmptyChromeClient::setLastSetCursorToCurrentCursor):
      Added empty implementations.
      
      * page/Chrome.cpp:
      (WebCore::Chrome::setCursor):
      * page/Chrome.h:
      * page/ChromeClient.h:
      Change existing setCursor() function to take a Cursor instead of a
      PlatformCursorHandle. Added setLastSetCursorToCurrentCursor.
      
      * platform/Cursor.cpp:
      * platform/Cursor.h:
      Added Cursor Type and the option of lazily creating the native cursor
      (used on Mac and Windows for now).
      
      * platform/HostWindow.h:
      Add setCursor.
      
      * platform/mac/CursorMac.mm:
      (WebCore::createCustomCursor): This no longer needs to call determineHotSpot
      as that is done when on construction of the cursor now and the hotSpot passed
      in is correct.
      (WebCore::Cursor::ensurePlatformCursor):
      (WebCore::Cursor::Cursor):
      (WebCore::Cursor::~Cursor):
      (WebCore::Cursor::operator=):
      (WebCore::Cursor::platformCursor):
      Convert to lazily creating the native cursor on the first request and
      storing the type.
      
      * platform/mac/WidgetMac.mm:
      (WebCore::Widget::setCursor):
      Use HostWindow::setCursor to set the cursor. This in turn will call the
      ChromeClient.
      
      * platform/win/CursorWin.cpp:
      (WebCore::createSharedCursor):
      (WebCore::loadSharedCursor):
      (WebCore::loadCursorByName):
      (WebCore::Cursor::ensurePlatformCursor):
      (WebCore::SharedCursor::~SharedCursor):
      (WebCore::Cursor::Cursor):
      (WebCore::Cursor::~Cursor):
      (WebCore::Cursor::operator=):
      (WebCore::Cursor::platformCursor):
      Convert to lazily creating the native cursor on the first request and
      storing the type.
      
      * platform/win/WidgetWin.cpp:
      (WebCore::Widget::setCursor):
      Use HostWindow::setCursor to set the cursor. This in turn will call the
      ChromeClient.
      
      * plugins/win/PluginViewWin.cpp:
      (WebCore::PluginView::handleMouseEvent):
      Use the new setLastSetCursorToCurrentCursor client function to ensure
      the cursor is properly updated when over a plugin.
      
      * platform/chromium/CursorChromium.cpp:
      * platform/efl/CursorEfl.cpp:
      * platform/gtk/CursorGtk.cpp:
      * platform/haiku/CursorHaiku.cpp:
      * platform/wince/CursorWince.cpp:
      * platform/wx/CursorWx.cpp:
      * platform/qt/CursorQt.cpp:
      Change m_impl -> m_platformCursor.
      
      WebKit: 
      
      * efl/WebCoreSupport/ChromeClientEfl.cpp:
      (WebCore::ChromeClientEfl::setCursor):
      * efl/WebCoreSupport/ChromeClientEfl.h:
      Change prototype to match new one.
      
      WebKit/chromium: 
      
      * src/ChromeClientImpl.h:
      (WebKit::ChromeClientImpl::setCursor):
      Change prototype to match new one.
      
      * src/WebPopupMenuImpl.cpp:
      (WebKit::WebPopupMenuImpl::setCursor):
      * src/WebPopupMenuImpl.h:
      Add empty setCursor function to satisfy the HostWindow interface.
      
      WebKit/gtk: 
      
      * WebCoreSupport/ChromeClientGtk.cpp:
      (WebKit::ChromeClient::setCursor):
      * WebCoreSupport/ChromeClientGtk.h:
      Change prototype to match new one.
      
      WebKit/haiku: 
      
      * WebCoreSupport/ChromeClientHaiku.cpp:
      (WebCore::ChromeClientHaiku::setCursor):
      * WebCoreSupport/ChromeClientHaiku.h:
      Change prototype to match new one.
      
      WebKit/mac: 
      
      * WebCoreSupport/WebChromeClient.h:
      * WebCoreSupport/WebChromeClient.mm:
      (WebChromeClient::setCursor):
      * WebView/WebView.mm:
      Implement cursor changing at the WebKit level for the sake of WebKit2.
      This functionality is being moved from WidgetMac.mm.
      (+[WebView _pointingHandCursor]):
      Update to use platformCursor() instead of impl().
      
      WebKit/qt: 
      
      * WebCoreSupport/ChromeClientQt.cpp:
      (WebCore::ChromeClientQt::setCursor):
      * WebCoreSupport/ChromeClientQt.h:
      Change prototype to match new one.
      
      WebKit/win: 
      
      * WebCoreSupport/WebChromeClient.cpp:
      (WebChromeClient::setCursor):
      We now need to grab the native cursor out of the WebCore cursor.
      
      (WebChromeClient::setLastSetCursorToCurrentCursor):
      Sets the WebView's "last set cursor" to be the current cursor so that
      the cursor is set correctly for plugins.
      * WebCoreSupport/WebChromeClient.h:
      * WebView.cpp:
      (WebView::WebView):
      (WebView::WebViewWndProc):
      * WebView.h:
      (WebView::setLastCursor):
      Change the "last set cursor" to be stored as a member instead of a global.
      
      WebKit/wx: 
      
      * WebKitSupport/ChromeClientWx.cpp:
      (WebCore::ChromeClientWx::setCursor):
      * WebKitSupport/ChromeClientWx.h:
      Change prototype to match new one.
      
      WebKit2: 
      
      * Shared/CoreIPCSupport/WebPageProxyMessageKinds.h:
      Add SetCursor message.
      
      * Shared/WebCoreArgumentCoders.h:
      Add encoding/decoding of Cursors. For now we don't support Custom
      cursors.
      
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::setCursor):
      * UIProcess/PageClient.h:
      Add pass through functions to get the cursor from the WebPageProxy
      to the WKView.
      
      * UIProcess/API/mac/WKView.mm:
      (-[WKView _setCursor:]):
      * UIProcess/API/mac/WKViewInternal.h:
      Implement changing the cursor.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::didReceiveMessage):
      (WebKit::WebPageProxy::setCursor):
      * UIProcess/WebPageProxy.h:
      Decode the cursor.
      
      * UIProcess/win/WebView.cpp:
      (WebKit::WebView::wndProc):
      (WebKit::WebView::WebView):
      (WebKit::WebView::onSetCursor):
      (WebKit::WebView::setCursor):
      * UIProcess/win/WebView.h:
      Implement changing the cursor.
      
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::setCursor):
      (WebKit::WebChromeClient::setLastSetCursorToCurrentCursor):
      * WebProcess/WebCoreSupport/WebChromeClient.h:
      Encode the cursor when setCursor is called.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ee7d0271
  6. 10 Jul, 2010 1 commit
  7. 09 Jul, 2010 1 commit
    • weinig@apple.com's avatar
      Patch for https://bugs.webkit.org/show_bug.cgi?id=41971 · c7506e08
      weinig@apple.com authored
      Add really basic BackForwardList support.
      
      Reviewed by Anders Carlsson.
      
      * Shared/CoreIPCSupport/WebPageMessageKinds.h:
      (WebPageMessage::):
      Add new message kind.
      
      * Shared/CoreIPCSupport/WebPageProxyMessageKinds.h:
      (WebPageProxyMessage::):
      Add new message kinds. Remove DidChangeCanGoBack and DidChangeCanGoForward.
      
      * UIProcess/API/C/WKPage.cpp:
      (WKPageGoToBackForwardListItem):
      * UIProcess/API/C/WKPage.h:
      Add function to initiate a navigation to a BackForward item.  The
      BackForward list will be updated to use this as the current item
      asynchronously. 
      
      * UIProcess/WebBackForwardList.cpp:
      (WebKit::WebBackForwardList::WebBackForwardList):
      (WebKit::WebBackForwardList::addItem): Added.
      (WebKit::WebBackForwardList::goToItem): Added.
      (WebKit::WebBackForwardList::itemAtIndex): Added.
      (WebKit::WebBackForwardList::backListCount): Changed to return int matching WebCore.
      (WebKit::WebBackForwardList::forwardListCount): Ditto.
      (WebKit::WebBackForwardList::backListWithLimit): Add cast to int.
      (WebKit::WebBackForwardList::forwardListWithLimit): Ditto.
      (WebKit::WebBackForwardList::backListAsImmutableArrayWithLimit): Ditto.
      (WebKit::WebBackForwardList::forwardListAsImmutableArrayWithLimit): Ditto.
      * UIProcess/WebBackForwardList.h:
      
      * UIProcess/WebBackForwardListItem.cpp:
      (WebKit::WebBackForwardListItem::WebBackForwardListItem):
      * UIProcess/WebBackForwardListItem.h:
      (WebKit::WebBackForwardListItem::create):
      (WebKit::WebBackForwardListItem::itemID):
      Added itemID.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::close):
      (WebKit::WebPageProxy::canGoForward):
      (WebKit::WebPageProxy::canGoBack):
      (WebKit::WebPageProxy::goToBackForwardItem):
      (WebKit::WebPageProxy::didReceiveMessage):
      (WebKit::WebPageProxy::didReceiveSyncMessage):
      (WebKit::WebPageProxy::addItemToBackForwardList):
      (WebKit::WebPageProxy::goToItemInBackForwardList):
      (WebKit::WebPageProxy::processDidExit):
      * UIProcess/WebPageProxy.h:
      - Removed m_canGoBack and m_canGoForward booleans and instead use the BackForwardList.
      - Forward goToBackForwardItem to the WebProcess.
      - Respond to messages from the WebBackForwardListProxy in the WebProcess,
        forwarding to the WebBackForwardList.
      
      * WebProcess/WebCoreSupport/WebBackForwardControllerClient.cpp:
      (WebKit::WebBackForwardControllerClient::createBackForwardList):
      Start using a WebBackForwardListProxy instead of a BackForwardListImpl.
      
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::dispatchDidAddBackForwardItem):
      (WebKit::WebFrameLoaderClient::dispatchDidRemoveBackForwardItem):
      (WebKit::WebFrameLoaderClient::dispatchDidChangeBackForwardIndex):
      Remove calls backForwardListDidChange() now that we communicate much more
      information than just this state.
      
      * WebProcess/WebPage/WebBackForwardListProxy.cpp:
      (WebKit::idToHistoryItemMap):
      (WebKit::historyItemToIDMap):
      (WebKit::generateHistoryItemID):
      (WebKit::getIDForHistoryItem):
      (WebKit::WebBackForwardListProxy::itemForID):
      Add leaking cached maps of HistoryItems to IDs, the life time of these
      objects will be improved in a subsequent patch.
      
      (WebKit::WebBackForwardListProxy::WebBackForwardListProxy):
      (WebKit::WebBackForwardListProxy::addItem):
      (WebKit::WebBackForwardListProxy::goBack):
      (WebKit::WebBackForwardListProxy::goForward):
      (WebKit::WebBackForwardListProxy::goToItem):
      (WebKit::WebBackForwardListProxy::backItem):
      (WebKit::WebBackForwardListProxy::currentItem):
      (WebKit::WebBackForwardListProxy::forwardItem):
      (WebKit::WebBackForwardListProxy::itemAtIndex):
      (WebKit::WebBackForwardListProxy::backListWithLimit):
      (WebKit::WebBackForwardListProxy::forwardListWithLimit):
      (WebKit::WebBackForwardListProxy::capacity):
      (WebKit::WebBackForwardListProxy::setCapacity):
      (WebKit::WebBackForwardListProxy::enabled):
      (WebKit::WebBackForwardListProxy::setEnabled):
      (WebKit::WebBackForwardListProxy::backListCount):
      (WebKit::WebBackForwardListProxy::forwardListCount):
      (WebKit::WebBackForwardListProxy::containsItem):
      (WebKit::WebBackForwardListProxy::close):
      (WebKit::WebBackForwardListProxy::closed):
      (WebKit::WebBackForwardListProxy::removeItem):
      (WebKit::WebBackForwardListProxy::entries):
      (WebKit::WebBackForwardListProxy::pushStateItem):
      * WebProcess/WebPage/WebBackForwardListProxy.h:
      Forward functions to the UIProcess.
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::goToBackForwardItem):
      (WebKit::WebPage::didReceiveMessage):
      * WebProcess/WebPage/WebPage.h:
      Respond to GoToBackForwardItem message.
      
      * mac/WebKit2.exp: Add new API function.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@62996 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c7506e08
  8. 08 Jul, 2010 1 commit
    • weinig@apple.com's avatar
      Patch for https://bugs.webkit.org/show_bug.cgi?id=41874 · 712a9e7b
      weinig@apple.com authored
      Add stubbed out WebBackForwardListProxy
      
      Reviewed by Anders Carlsson.
      
      - No behavior change.
      - Rename the old WebBackForwardListProxy to WebBackForwardList since it
        will be the implementation, not the proxy.
      
      * UIProcess/API/C/WKAPICast.h:
      * UIProcess/API/C/WKBackForwardList.cpp:
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/WebBackForwardList.cpp: Copied from UIProcess/WebBackForwardListProxy.cpp.
      * UIProcess/WebBackForwardList.h: Copied from UIProcess/WebBackForwardListProxy.h.
      (WebKit::WebBackForwardList::create):
      * UIProcess/WebBackForwardListProxy.cpp: Removed.
      * UIProcess/WebBackForwardListProxy.h: Removed.
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::backForwardList):
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/WebPage/WebBackForwardListProxy.cpp: Added.
      * WebProcess/WebPage/WebBackForwardListProxy.h: Added.
      (WebKit::WebBackForwardListProxy::create):
      * win/WebKit2.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@62805 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      712a9e7b
  9. 01 Jul, 2010 1 commit
    • weinig@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=41491 · 1274870f
      weinig@apple.com authored
      Add first stab at back/forward list API.
      
      Reviewed by Anders Carlsson.
      
      * UIProcess/API/C/WKAPICast.h:
      * UIProcess/API/C/WKBackForwardList.cpp: Added.
      * UIProcess/API/C/WKBackForwardList.h: Added.
      * UIProcess/API/C/WKBackForwardListItem.cpp: Added.
      * UIProcess/API/C/WKBackForwardListItem.h: Added.
      * UIProcess/API/C/WKBase.h:
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/API/C/WKPage.h:
      * UIProcess/API/C/WebKit2.h:
      * UIProcess/WebBackForwardListItem.cpp: Added.
      * UIProcess/WebBackForwardListItem.h: Added.
      * UIProcess/WebBackForwardListProxy.cpp: Added.
      * UIProcess/WebBackForwardListProxy.h: Added.
      * UIProcess/WebPageProxy.cpp:
      * UIProcess/WebPageProxy.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * win/WebKit2.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@62307 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1274870f
  10. 24 Jun, 2010 1 commit
  11. 21 Jun, 2010 1 commit
    • andersca@apple.com's avatar
      WebKit2: Make WebKit2 build with clang++ · 8d57cfd6
      andersca@apple.com authored
      Reviewed by Sam Weinig.
      
      * Platform/CoreIPC/Connection.h:
      * UIProcess/API/mac/WKView.mm:
      (-[WKView keyUp:]):
      (-[WKView keyDown:]):
      * UIProcess/WebHistoryClient.h:
      * UIProcess/WebPageProxy.h:
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebProcess.h:
      
      WebKitTools: Make DumpRenderTree build with clang++
      
      Reviewed by Sam Weinig.
      
      * DumpRenderTree/mac/DumpRenderTreePasteboard.m:
      (-[LocalPasteboard setPropertyList:forType:]):
      * DumpRenderTree/mac/DumpRenderTreeWindow.mm:
      (-[DumpRenderTreeWindow keyDown:]):
      * DumpRenderTree/mac/LayoutTestControllerMac.mm:
      (LayoutTestController::elementDoesAutoCompleteForElementWithId):
      (LayoutTestController::isCommandEnabled):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@61563 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8d57cfd6
  12. 08 Jun, 2010 1 commit
    • andersca@apple.com's avatar
      2010-06-08 Anders Carlsson <andersca@apple.com> · d20cd0e6
      andersca@apple.com authored
              Reviewed by John Sullivan.
      
              Would like a way to query WKPageRef for the current progress value
              https://bugs.webkit.org/show_bug.cgi?id=40310
              <rdar://problem/8071299>
      
              Add WKPageGetEstimatedProgress. Remove the progress parameter from the didChangeProgress
              loader client callback function.
      
              * UIProcess/API/C/WKPage.cpp:
              (WKPageGetEstimatedProgress):
              * UIProcess/API/C/WKPage.h:
              * UIProcess/WebLoaderClient.cpp:
              (WebKit::WebLoaderClient::didChangeProgress):
              * UIProcess/WebLoaderClient.h:
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::WebPageProxy):
              (WebKit::WebPageProxy::close):
              (WebKit::WebPageProxy::didStartProgress):
              (WebKit::WebPageProxy::didChangeProgress):
              (WebKit::WebPageProxy::didFinishProgress):
              (WebKit::WebPageProxy::processDidExit):
              * UIProcess/WebPageProxy.h:
              (WebKit::WebPageProxy::estimatedProgress):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@60853 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d20cd0e6
  13. 04 Jun, 2010 1 commit
  14. 03 May, 2010 3 commits
    • andersca@apple.com's avatar
      2010-05-03 Anders Carlsson <andersca@apple.com> · 833664d7
      andersca@apple.com authored
              Reviewed by Dan Bernstein.
      
              Get rid of PageClient::isPageVisible and pass visibility directly in setPageIsVisible
              https://bugs.webkit.org/show_bug.cgi?id=38493
      
              * UIProcess/API/mac/PageClientImpl.h:
              * UIProcess/API/mac/PageClientImpl.mm:
              Remove isPageVisible.
              
              * UIProcess/API/mac/WKView.mm:
              (isViewVisible):
              New function (moved here from PageClientImpl).
              
              (-[WKView _updateVisibility]):
              Call didChangeVisibility.
              
              (-[WKView viewDidMoveToWindow]):
              (-[WKView viewDidHide]):
              (-[WKView viewDidUnhide]):
              Call _updateVisibility.
              
              * UIProcess/DrawingAreaProxy.h:
              Rename didChangeVisibility to setPageIsVisible and add an isVisible parameter.
              
              * UIProcess/DrawingAreaProxyUpdateChunk.cpp:
              (WebKit::DrawingAreaProxyUpdateChunk::setPageIsVisible):
              Don't call WebPageProxy::isVisible.
      
              * UIProcess/DrawingAreaProxyUpdateChunk.h:
              
              * UIProcess/PageClient.h:
              Remove isPageVisible.
      
              * UIProcess/WebPageProxy.cpp:
              * UIProcess/WebPageProxy.h:
              Remove isVisible.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58714 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      833664d7
    • andersca@apple.com's avatar
      2010-04-30 Anders Carlsson <andersca@apple.com> · 98172ff8
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              https://bugs.webkit.org/show_bug.cgi?id=38415
              Have the WKView notify the DrawingAreaProxy when its visibility changes.
      
              * UIProcess/API/mac/PageClientImpl.h:
              * UIProcess/API/mac/PageClientImpl.mm:
              (WebKit::PageClientImpl::isPageVisible):
              * UIProcess/API/mac/WKView.mm:
              (-[WKView viewDidMoveToWindow]):
              (-[WKView viewDidHide]):
              (-[WKView viewDidUnhide]):
              * UIProcess/DrawingAreaProxy.h:
              * UIProcess/DrawingAreaProxyUpdateChunk.cpp:
              (WebKit::DrawingAreaProxyUpdateChunk::DrawingAreaProxyUpdateChunk):
              (WebKit::DrawingAreaProxyUpdateChunk::didChangeVisibility):
              * UIProcess/DrawingAreaProxyUpdateChunk.h:
              * UIProcess/PageClient.h:
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::isVisible):
              * UIProcess/WebPageProxy.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58688 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      98172ff8
    • weinig@apple.com's avatar
      Fix for https://bugs.webkit.org/show_bug.cgi?id=38471 · 48ebd119
      weinig@apple.com authored
      Add generic callback mechanism
      
      Reviewed by Anders Carlsson.
      
      Added GenericCallback class replacing RenderTreeExternalRepresentationCallback
      and ScriptReturnValueCallback.
              
      Also,
      - Standardize C API callbacks to take the context last.
      - Standardize C API callbacks to not have the _f suffix (now the block
        variants have a _b suffix).
      - Re-write toWK and toRef methods as a set of template functions using
        the generic API->implementation mapping information.
      
      * UIProcess/API/C/WKAPICast.h:
      * UIProcess/API/C/WKPage.cpp:
      (WKPageRunJavaScriptInMainFrame):
      (callRunJavaScriptBlockAndRelease):
      (disposeRunJavaScriptBlock):
      (WKPageRunJavaScriptInMainFrame_b):
      (WKPageRenderTreeExternalRepresentation):
      (WKPageRenderTreeExternalRepresentation_b):
      * UIProcess/API/C/WKPage.h:
      * UIProcess/API/C/WKPagePrivate.h:
      * UIProcess/GenericCallback.h: Added.
      (WebKit::GenericCallback::create):
      (WebKit::GenericCallback::~GenericCallback):
      (WebKit::GenericCallback::performCallbackWithReturnValue):
      (WebKit::GenericCallback::invalidate):
      (WebKit::GenericCallback::callbackID):
      (WebKit::GenericCallback::generateCallbackID):
      (WebKit::GenericCallback::GenericCallback):
      * UIProcess/RenderTreeExternalRepresentationCallback.cpp: Removed.
      * UIProcess/RenderTreeExternalRepresentationCallback.h: Removed.
      * UIProcess/ScriptReturnValueCallback.cpp: Removed.
      * UIProcess/ScriptReturnValueCallback.h: Removed.
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::didRunJavaScriptInMainFrame):
      (WebKit::WebPageProxy::didGetRenderTreeExternalRepresentation):
      * UIProcess/WebPageProxy.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * win/WebKit2.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58684 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      48ebd119
  15. 30 Apr, 2010 1 commit
    • weinig@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=38413 · 60495919
      weinig@apple.com authored
      Add callback based API to get the textual representation of the RenderTree.
      
      Reviewed by Anders Carlsson.
      
      - Also ensures that any pending callbacks are invalidated if the WebPage
        closes (expectedly or unexpectedly).
      - A follow up patch will unify the callback mechanism with a common base
        class.
      
      * Shared/CoreIPCSupport/WebPageMessageKinds.h:
      (WebPageMessage::):
      * Shared/CoreIPCSupport/WebPageProxyMessageKinds.h:
      (WebPageProxyMessage::):
      * UIProcess/API/C/WKPage.cpp:
      (WKPageRunJavaScriptInMainFrame_f):
      (WKPageRenderTreeExternalRepresentation_f):
      (callRenderTreeExternalRepresentationBlockAndDispose):
      (disposeRenderTreeExternalRepresentationBlock):
      (WKPageRenderTreeExternalRepresentation):
      * UIProcess/API/C/WKPagePrivate.h: Added.
      * UIProcess/RenderTreeExternalRepresentationCallback.cpp: Added.
      (WebKit::generateCallbackID):
      (WebKit::RenderTreeExternalRepresentationCallback::RenderTreeExternalRepresentationCallback):
      (WebKit::RenderTreeExternalRepresentationCallback::~RenderTreeExternalRepresentationCallback):
      (WebKit::RenderTreeExternalRepresentationCallback::performCallbackWithReturnValue):
      (WebKit::RenderTreeExternalRepresentationCallback::invalidate):
      * UIProcess/RenderTreeExternalRepresentationCallback.h: Added.
      (WebKit::RenderTreeExternalRepresentationCallback::create):
      (WebKit::RenderTreeExternalRepresentationCallback::callbackID):
      * UIProcess/ScriptReturnValueCallback.cpp:
      (WebKit::ScriptReturnValueCallback::~ScriptReturnValueCallback):
      (WebKit::ScriptReturnValueCallback::performCallbackWithReturnValue):
      (WebKit::ScriptReturnValueCallback::invalidate):
      * UIProcess/ScriptReturnValueCallback.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::close):
      (WebKit::WebPageProxy::getRenderTreeExternalRepresentation):
      (WebKit::WebPageProxy::didReceiveMessage):
      (WebKit::WebPageProxy::didRunJavaScriptInMainFrame):
      (WebKit::WebPageProxy::didGetRenderTreeExternalRepresentation):
      (WebKit::WebPageProxy::processDidExit):
      * UIProcess/WebPageProxy.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::getRenderTreeExternalRepresentation):
      (WebKit::WebPage::didReceiveMessage):
      * WebProcess/WebPage/WebPage.h:
      * win/WebKit2.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60495919
  16. 22 Apr, 2010 1 commit
    • weinig@apple.com's avatar
      Fix for https://bugs.webkit.org/show_bug.cgi?id=38002 · baf54cbf
      weinig@apple.com authored
      Add rudimentary statistics gathering for WebKit2
      
      Reviewed by Anders Carlsson.
      
      WebKit2: 
      
      * UIProcess/API/C/WKContext.cpp:
      (WKContextGetStatistics):
      * UIProcess/API/C/WKContextPrivate.h: Copied from WebKit2/UIProcess/API/C/WKContext.h.
      * UIProcess/API/C/WKPageNamespace.cpp:
      (WKPageNamespaceGetContext):
      * UIProcess/API/C/WKPageNamespace.h:
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::getStatistics):
      * UIProcess/WebContext.h:
      * UIProcess/WebPageNamespace.cpp:
      (WebKit::WebPageNamespace::getStatistics):
      * UIProcess/WebPageNamespace.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::getStatistics):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebProcessProxy.cpp:
      (WebKit::WebProcessProxy::numberOfPages):
      * UIProcess/WebProcessProxy.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * win/WebKit2.vcproj:
      
      WebKitTools: 
      
      * MiniBrowser/MiniBrowser.xcodeproj/project.pbxproj:
      * MiniBrowser/mac/AppDelegate.h:
      * MiniBrowser/mac/AppDelegate.m:
      (-[BrowserAppDelegate init]):
      (-[BrowserAppDelegate newWindow:]):
      (-[BrowserAppDelegate getCurrentPageNamespace]):
      (-[BrowserAppDelegate _setProcessModel:]):
      (-[BrowserAppDelegate showStatisticsWindow:]):
      (-[BrowserAppDelegate applicationWillTerminate:]):
      * MiniBrowser/mac/BrowserStatisticsWindow.xib: Added.
      * MiniBrowser/mac/BrowserStatisticsWindowController.h: Added.
      * MiniBrowser/mac/BrowserStatisticsWindowController.m: Added.
      (-[BrowserStatisticsWindowController initWithThreadedWKContextRef:processWKContextRef:]):
      (-[BrowserStatisticsWindowController dealloc]):
      (-[BrowserStatisticsWindowController windowDidLoad]):
      (-[BrowserStatisticsWindowController refreshStatistics:]):
      * MiniBrowser/mac/BrowserWindowController.h:
      * MiniBrowser/mac/English.lproj/MainMenu.xib:
      * MiniBrowser/mac/MiniBrowser_Prefix.pch:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58117 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      baf54cbf
  17. 15 Apr, 2010 2 commits
    • weinig@apple.com's avatar
      Add WebHistoryClient support. · 9d2da683
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=37671
      
      Reviewed by Anders Carlsson.
      
      WebKit2: 
      
      Adds the following callbacks:
          didNavigateWithNavigationData
          didPerformClientRedirect
          didPerformServerRedirect
          didUpdateHistoryTitle
      
      * Shared/CoreIPCSupport/WebPageProxyMessageKinds.h:
      (WebPageProxyMessage::):
      * Shared/WebNavigationDataStore.h: Added.
      * UIProcess/API/C/WKAPICast.h:
      * UIProcess/API/C/WKBase.h:
      * UIProcess/API/C/WKNavigationData.cpp: Added.
      * UIProcess/API/C/WKNavigationData.h: Added.
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/API/C/WKPage.h:
      * UIProcess/API/C/WebKit2.h:
      * UIProcess/WebHistoryClient.cpp: Copied from UIProcess/WebUIClient.cpp.
      * UIProcess/WebHistoryClient.h: Copied from UIProcess/WebUIClient.h.
      * UIProcess/WebNavigationData.cpp: Added.
      * UIProcess/WebNavigationData.h: Added.
      * UIProcess/WebPageProxy.cpp:
      * UIProcess/WebPageProxy.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      * win/WebKit2.vcproj:
      
      WebKitTools: 
      
      Add HistoryClient logging.
      
      * MiniBrowser/mac/BrowserWindowController.m:
      (_didNavigateWithNavigationData):
      (_didPerformClientRedirect):
      (_didPerformServerRedirect):
      (_didUpdateHistoryTitle):
      (-[BrowserWindowController awakeFromNib]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57676 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d2da683
    • ggaren@apple.com's avatar
      Fixed complexity and performance FIXME created by using KURL in the UI · c647272e
      ggaren@apple.com authored
      process -- it turned out that everywhere we were using KURL, we could
      have just used String instead. (That's how Windows WebKit works, too.)
      
      Reviewed by Anders Carlsson.
      
      I kept WKURLRef and WKStringRef distinct opaque types in the API for now,
      though, since there may be profit in changing their backing stores in the
      future, and it's nice for the API to encode a difference between generic
      strings and strings that are valid, canonical URLs.
      
      * Shared/KURLWrapper.h: Removed. Yay!
      
      * Shared/WebCoreTypeArgumentMarshalling.h: Nixed KURL marshalling functions.
      Old callers marshal Strings now, instead. (This is what KURL was doing
      under the covers, anyway.)
      
      * UIProcess/API/C/WKAPICast.h:
      (toWK): Backed by StringImpl* now.
      (toURLRef): Added a disambiguating function for specifying that you want
      a WKURLRef, since StringImpl* converts to WKStringRef by default.
      
      * UIProcess/API/C/WKFrame.cpp:
      (WKFrameGetProvisionalURL):
      (WKFrameGetURL):
      * UIProcess/API/C/WKPage.cpp:
      (WKPageLoadURL):
      * UIProcess/API/C/WKURL.cpp:
      * UIProcess/API/C/cf/WKURLCF.cpp:
      (WKURLCreateWithCFURL):
      (WKURLCopyCFURL):
      * UIProcess/WebFrameProxy.cpp:
      (WebKit::WebFrameProxy::didStartProvisionalLoad):
      (WebKit::WebFrameProxy::didCommitLoad):
      * UIProcess/WebFrameProxy.h:
      (WebKit::WebFrameProxy::url):
      (WebKit::WebFrameProxy::provisionalURL):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::loadURL):
      (WebKit::WebPageProxy::didReceiveMessage):
      (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
      (WebKit::WebPageProxy::decidePolicyForNavigationAction):
      (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
      (WebKit::WebPageProxy::decidePolicyForMIMEType):
      (WebKit::WebPageProxy::processDidExit):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::urlAtProcessExit):
      * UIProcess/WebPolicyClient.cpp:
      (WebKit::WebPolicyClient::decidePolicyForNavigationAction):
      (WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
      (WebKit::WebPolicyClient::decidePolicyForMIMEType):
      * UIProcess/WebPolicyClient.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::loadURL):
      (WebKit::WebPage::didReceiveMessage):
      * WebProcess/WebPage/WebPage.h: Replaced KURL / KURLWrapper with String.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57645 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c647272e
  18. 09 Apr, 2010 2 commits
    • weinig@apple.com's avatar
      Fix minor style nits found by the style-script. · 31cb2417
      weinig@apple.com authored
      Reviewed by Anders Carlsson.
      
      * Platform/CoreIPC/ArgumentDecoder.h:
      * Platform/CoreIPC/ArgumentEncoder.cpp:
      * Platform/CoreIPC/Attachment.cpp:
      * Platform/CoreIPC/Connection.cpp:
      * Platform/CoreIPC/Connection.h:
      * Platform/CoreIPC/mac/ConnectionMac.cpp:
      * Platform/CoreIPC/win/ConnectionWin.cpp:
      * Platform/WorkQueue.h:
      * Platform/mac/WorkQueueMac.cpp:
      * Platform/win/RunLoopWin.cpp:
      * Shared/KURLWrapper.h:
      * Shared/WebCoreTypeArgumentMarshalling.h:
      * Shared/mac/UpdateChunk.cpp:
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/API/C/WKURL.cpp:
      * UIProcess/Launcher/win/WebProcessLauncher.cpp:
      * UIProcess/ResponsivenessTimer.cpp:
      * UIProcess/WebLoaderClient.cpp:
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPolicyClient.cpp:
      * UIProcess/WebUIClient.cpp:
      * UIProcess/win/DrawingAreaProxy.cpp:
      * UIProcess/win/WebView.cpp:
      * WebProcess/Launching/win/WebProcessWinMain.cpp:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      * WebProcess/WebCoreSupport/mac/WebSystemInterface.h:
      * WebProcess/WebCoreSupport/win/WebCoreLocalizedStrings.cpp:
      * WebProcess/WebCoreSupport/win/WebErrorsWin.cpp:
      * WebProcess/WebPage/WebFrame.h:
      * WebProcess/WebPage/WebPage.cpp:
      * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp:
      * WebProcess/WebProcess.h:
      * WebProcess/win/WebLocalizableStrings.cpp:
      * WebProcess/win/WebLocalizableStrings.h:
      * WebProcess/win/WebProcessMain.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      31cb2417
    • weinig@apple.com's avatar
      Fix for https://bugs.webkit.org/show_bug.cgi?id=37347 · 0664edbb
      weinig@apple.com authored
      Don't use CF types in the new C API
      
      Reviewed by Anders Carlsson.
      
      Replace all uses of CF types in the C API.
      - Replace CFStringRef with WKStringRef.
      - Replace CFURLRef with WKURLRef.
      
      * WebKit2.xcodeproj/project.pbxproj: Add new files.
      
      * Shared/KURLWrapper.h: Added. RefCounted wrapper around KURL.
      * UIProcess/API/C/WKAPICast.h: Add new conversions.
      * UIProcess/API/C/WKBase.h: Add new types.
      * UIProcess/API/C/WKFrame.cpp:
      * UIProcess/API/C/WKFrame.h: 
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/API/C/WKPage.h:
      Replace uses of CF types with WK equivalents.
      
      * UIProcess/API/C/WKString.cpp: Added.
      * UIProcess/API/C/WKString.h: Added.
      Represents a WebCore::StringImpl*.
      
      * UIProcess/API/C/WKURL.cpp: Added.
      * UIProcess/API/C/WKURL.h: Added.
      Represents a WebKit::KURLWrapper*.
      
      * UIProcess/API/C/cf: Added.
      * UIProcess/API/C/cf/WKStringCF.cpp: Added.
      * UIProcess/API/C/cf/WKStringCF.h: Added.
      * UIProcess/API/C/cf/WKURLCF.cpp: Added.
      * UIProcess/API/C/cf/WKURLCF.h: Added.
      CoreFoundation conversion files. Allows converting
       WKStringRef <-> CFStringRef
       WKURLRef <-> CFURLRef
      
      * UIProcess/ScriptReturnValueCallback.cpp:
      (WebKit::ScriptReturnValueCallback::performCallbackWithReturnValue):
      * UIProcess/ScriptReturnValueCallback.h:
      * UIProcess/WebFrameProxy.cpp:
      (WebKit::WebFrameProxy::didStartProvisionalLoad):
      (WebKit::WebFrameProxy::didCommitLoad):
      * UIProcess/WebFrameProxy.h:
      (WebKit::WebFrameProxy::url):
      (WebKit::WebFrameProxy::provisionalURL):
      * UIProcess/WebLoaderClient.cpp:
      (WebKit::WebLoaderClient::didReceiveTitleForFrame):
      * UIProcess/WebLoaderClient.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::close):
      (WebKit::WebPageProxy::didReceiveTitleForFrame):
      (WebKit::WebPageProxy::decidePolicyForNavigationAction):
      (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
      (WebKit::WebPageProxy::decidePolicyForMIMEType):
      (WebKit::WebPageProxy::runJavaScriptAlert):
      (WebKit::WebPageProxy::didRunJavaScriptInMainFrame):
      (WebKit::WebPageProxy::processDidExit):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::pageTitle):
      (WebKit::WebPageProxy::urlAtProcessExit):
      * UIProcess/WebPolicyClient.cpp:
      (WebKit::WebPolicyClient::decidePolicyForNavigationAction):
      (WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
      (WebKit::WebPolicyClient::decidePolicyForMIMEType):
      * UIProcess/WebPolicyClient.h:
      * UIProcess/WebUIClient.cpp:
      (WebKit::WebUIClient::runJavaScriptAlert):
      * UIProcess/WebUIClient.h:
      Don't use CF types internally at all.
      
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::frameLoaderDestroyed):
      Fix typo.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0664edbb
  19. 08 Apr, 2010 1 commit
    • weinig@apple.com's avatar
      Add WebKit2/UIProcess directory. · b945598b
      weinig@apple.com authored
      Patch by Anders Carlsson <andersca@apple.com> on 2010-04-08
      Reviewed by Sam Weinig.
      
      * UIProcess: Added.
      * UIProcess/API: Added.
      * UIProcess/API/C: Added.
      * UIProcess/API/C/WKAPICast.h: Added.
      * UIProcess/API/C/WKBase.h: Added.
      * UIProcess/API/C/WKContext.cpp: Added.
      * UIProcess/API/C/WKContext.h: Added.
      * UIProcess/API/C/WKFrame.cpp: Added.
      * UIProcess/API/C/WKFrame.h: Added.
      * UIProcess/API/C/WKFramePolicyListener.cpp: Added.
      * UIProcess/API/C/WKFramePolicyListener.h: Added.
      * UIProcess/API/C/WKPage.cpp: Added.
      * UIProcess/API/C/WKPage.h: Added.
      * UIProcess/API/C/WKPageNamespace.cpp: Added.
      * UIProcess/API/C/WKPageNamespace.h: Added.
      * UIProcess/API/C/WKPreferences.cpp: Added.
      * UIProcess/API/C/WKPreferences.h: Added.
      * UIProcess/API/C/WebKit2.h: Added.
      * UIProcess/API/mac: Added.
      * UIProcess/API/mac/PageClientImpl.h: Added.
      * UIProcess/API/mac/PageClientImpl.mm: Added.
      * UIProcess/API/mac/WKView.h: Added.
      * UIProcess/API/mac/WKView.mm: Added.
      * UIProcess/API/mac/WKViewInternal.h: Added.
      * UIProcess/API/win: Added.
      * UIProcess/API/win/WKAPICastWin.h: Added.
      * UIProcess/API/win/WKBaseWin.h: Added.
      * UIProcess/API/win/WKView.cpp: Added.
      * UIProcess/API/win/WKView.h: Added.
      * UIProcess/Launcher: Added.
      * UIProcess/Launcher/WebProcessLauncher.h: Added.
      * UIProcess/Launcher/mac: Added.
      * UIProcess/Launcher/mac/WebProcessLauncher.mm: Added.
      * UIProcess/Launcher/win: Added.
      * UIProcess/Launcher/win/WebProcessLauncher.cpp: Added.
      * UIProcess/PageClient.h: Added.
      * UIProcess/ProcessModel.h: Added.
      * UIProcess/ResponsivenessTimer.cpp: Added.
      * UIProcess/ResponsivenessTimer.h: Added.
      * UIProcess/ScriptReturnValueCallback.cpp: Added.
      * UIProcess/ScriptReturnValueCallback.h: Added.
      * UIProcess/WebContext.cpp: Added.
      * UIProcess/WebContext.h: Added.
      * UIProcess/WebFramePolicyListenerProxy.cpp: Added.
      * UIProcess/WebFramePolicyListenerProxy.h: Added.
      * UIProcess/WebFrameProxy.cpp: Added.
      * UIProcess/WebFrameProxy.h: Added.
      * UIProcess/WebLoaderClient.cpp: Added.
      * UIProcess/WebLoaderClient.h: Added.
      * UIProcess/WebPageNamespace.cpp: Added.
      * UIProcess/WebPageNamespace.h: Added.
      * UIProcess/WebPageProxy.cpp: Added.
      * UIProcess/WebPageProxy.h: Added.
      * UIProcess/WebPolicyClient.cpp: Added.
      * UIProcess/WebPolicyClient.h: Added.
      * UIProcess/WebPreferences.cpp: Added.
      * UIProcess/WebPreferences.h: Added.
      * UIProcess/WebProcessManager.cpp: Added.
      * UIProcess/WebProcessManager.h: Added.
      * UIProcess/WebProcessProxy.cpp: Added.
      * UIProcess/WebProcessProxy.h: Added.
      * UIProcess/WebUIClient.cpp: Added.
      * UIProcess/WebUIClient.h: Added.
      * UIProcess/mac: Added.
      * UIProcess/mac/DrawingAreaProxy.h: Added.
      * UIProcess/mac/DrawingAreaProxy.mm: Added.
      * UIProcess/mac/DrawingAreaProxyUpdateChunk.h: Added.
      * UIProcess/mac/DrawingAreaProxyUpdateChunk.mm: Added.
      * UIProcess/win: Added.
      * UIProcess/win/DrawingAreaProxy.cpp: Added.
      * UIProcess/win/DrawingAreaProxy.h: Added.
      * UIProcess/win/WebView.cpp: Added.
      * UIProcess/win/WebView.h: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57310 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b945598b