Skip to content
  • darin@apple.com's avatar
    <https://webkit.org/b/119941> Make Page::dragController return a reference · a5e48bb2
    darin@apple.com authored
    Reviewed by Andreas Kling.
    
    Source/WebCore:
    
    * page/Page.h:
    (WebCore::Page::dragController): Return a reference instead of a pointer.
    
    * page/DragController.cpp:
    (WebCore::DragController::concludeEditDrag):
    * page/EventHandler.cpp:
    (WebCore::EventHandler::eventMayStartDrag):
    (WebCore::EventHandler::updateDragSourceActionsAllowed):
    (WebCore::EventHandler::handleDrag):
    * page/mac/EventHandlerMac.mm:
    (WebCore::EventHandler::passSubframeEventToSubframe):
    Updated call sites.
    
    Source/WebKit/gtk:
    
    * webkit/webkitwebview.cpp:
    (dragExitedCallback):
    (webkit_web_view_drag_motion):
    (webkit_web_view_drag_data_received):
    (webkit_web_view_drag_drop):
    Updated call sites.
    
    Source/WebKit/mac:
    
    * WebView/WebFrameView.mm:
    (-[WebFrameView _setDocumentView:]):
    * WebView/WebHTMLView.mm:
    (-[WebHTMLView draggingSourceOperationMaskForLocal:]):
    (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
    * WebView/WebView.mm:
    (-[WebView _setInitiatedDrag:]):
    (-[WebView draggingEntered:]):
    (-[WebView draggingUpdated:]):
    (-[WebView draggingExited:]):
    (-[WebView performDragOperation:]):
    (-[WebView moveDragCaretToPoint:]):
    (-[WebView removeDragCaret]):
    Updated call sites.
    
    Source/WebKit/qt:
    
    * WebCoreSupport/DragClientQt.cpp:
    (WebCore::DragClientQt::startDrag):
    * WebCoreSupport/QWebPageAdapter.cpp:
    (QWebPageAdapter::dragEntered):
    (QWebPageAdapter::dragLeaveEvent):
    (QWebPageAdapter::dragUpdated):
    (QWebPageAdapter::performDrag):
    Updated call sites.
    
    Source/WebKit/win:
    
    * WebCoreSupport/WebDragClient.cpp:
    (WebDragClient::startDrag):
    * WebView.cpp:
    (WebView::keyStateToDragOperation):
    (WebView::DragEnter):
    (WebView::DragOver):
    (WebView::DragLeave):
    (WebView::Drop):
    Updated call sites.
    
    Source/WebKit2:
    
    * WebProcess/WebPage/WebPage.cpp:
    (WebKit::WebPage::performDragControllerAction):
    (WebKit::WebPage::dragEnded):
    Updated call sites.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154224 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    a5e48bb2