Skip to content
  • commit-queue@webkit.org's avatar
    [chromium] Allow dragging into plugins. · 66c52808
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=98277
    
    Patch by Sadrul Habib Chowdhury <sadrul@chromium.org> on 2012-10-05
    Reviewed by Tony Chang.
    
    Source/WebKit/chromium:
    
    Allow plugins to receive drag events. This will make it possible to
    perform drag-n-drop into browser plugins (and other plugins if desired).
    
    * public/WebDragStatus.h: Added.
    (WebKit):
    * public/WebPlugin.h:
    (WebKit):
    (WebPlugin):
    * src/WebPluginContainerImpl.cpp:
    (WebKit::WebPluginContainerImpl::handleMouseEvent):
    (WebKit::WebPluginContainerImpl::handleDragEvent):
    (WebKit):
    * src/WebPluginContainerImpl.h:
    (WebPluginContainerImpl):
    
    Tools:
    
    Update the TestWebPlugin to receive drag events and print them out.
    
    * DumpRenderTree/chromium/TestWebPlugin.cpp:
    (TestWebPlugin::handleDragStatusUpdate):
    * DumpRenderTree/chromium/TestWebPlugin.h:
    (TestWebPlugin):
    
    LayoutTests:
    
    Add test to make sure that plugins receive the drag events correctly.
    
    * platform/chromium/plugins/drag-events-expected.txt: Added.
    * platform/chromium/plugins/drag-events.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130504 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    66c52808