Skip to content
  • britto@apple.com's avatar
    2008-08-02 Maxime Britto <britto@apple.com> · 0dbc02df
    britto@apple.com authored
            Reviewed by Eric Seidel.
    
            <rdar://problem/6118969>
            https://bugs.webkit.org/show_bug.cgi?id=19971 
            Modifiy the cursor interactively when on panning mode (middle click auto scroll)
            When the panning is in progress the cursor is an arrow representing the direction of the current scroll
    
            * page/EventHandler.cpp:
            (WebCore::EventHandler::autoscrollTimerFired): Before each scroll we actualize the cursor to match the current direction
            (WebCore::EventHandler::setPanScrollCursor): determines the direction of the upcoming scroll.
            (WebCore::EventHandler::handleMouseMoveEvent):
            * page/EventHandler.h: 
            * platform/Cursor.h: Add propotypes for the new cursor functions
            * platform/gtk/CursorGtk.cpp: to avoid build break
            (WebCore::middlePanningCursor):
            (WebCore::eastPanningCursor):
            (WebCore::northPanningCursor):
            (WebCore::northEastPanningCursor):
            (WebCore::northWestPanningCursor):
            (WebCore::southPanningCursor):
            (WebCore::southEastPanningCursor):
            (WebCore::southWestPanningCursor):
            (WebCore::westPanningCursor):
            * platform/mac/CursorMac.mm: to avoid build break
            (WebCore::middlePanningCursor):
            (WebCore::eastPanningCursor):
            (WebCore::northPanningCursor):
            (WebCore::northEastPanningCursor):
            (WebCore::northWestPanningCursor):
            (WebCore::southPanningCursor):
            (WebCore::southEastPanningCursor):
            (WebCore::southWestPanningCursor):
            (WebCore::westPanningCursor):
            * platform/qt/CursorQt.cpp: to avoid build break
            (WebCore::middlePanningCursor):
            (WebCore::eastPanningCursor):
            (WebCore::northPanningCursor):
            (WebCore::northEastPanningCursor):
            (WebCore::northWestPanningCursor):
            (WebCore::southPanningCursor):
            (WebCore::southEastPanningCursor):
            (WebCore::southWestPanningCursor):
            (WebCore::westPanningCursor):
            * platform/win/CursorWin.cpp: Add specific icons for the panning as windows resizing icons are both sides arrows
            (WebCore::middlePanningCursor):
            (WebCore::eastPanningCursor):
            (WebCore::northPanningCursor):
            (WebCore::northEastPanningCursor):
            (WebCore::northWestPanningCursor):
            (WebCore::southPanningCursor):
            (WebCore::southEastPanningCursor):
            (WebCore::southWestPanningCursor):
            (WebCore::westPanningCursor):
            * platform/wx/CursorWx.cpp: to avoid build break
            (WebCore::middlePanningCursor):
            (WebCore::eastPanningCursor):
            (WebCore::northPanningCursor):
            (WebCore::northEastPanningCursor):
            (WebCore::northWestPanningCursor):
            (WebCore::southPanningCursor):
            (WebCore::southEastPanningCursor):
            (WebCore::southWestPanningCursor):
            (WebCore::westPanningCursor):
    
    2008-08-02  Maxime Britto  <britto@apple.com>
    
            Reviewed by Eric Seidel.
          
            These icons are copies from the resizers in WebCore/Ressources
    
            * ChangeLog:
            * WebKit.vcproj/WebKit.rc:
            * WebKit.vcproj/panEastCursor.png: Added.
            * WebKit.vcproj/panNorthCursor.png: Added.
            * WebKit.vcproj/panNorthEastCursor.png: Added.
            * WebKit.vcproj/panNorthWestCursor.png: Added.
            * WebKit.vcproj/panSouthCursor.png: Added.
            * WebKit.vcproj/panSouthEastCursor.png: Added.
            * WebKit.vcproj/panSouthWestCursor.png: Added.
            * WebKit.vcproj/panWestCursor.png: Added.
            * WebKit.vcproj/resource.h:
            * WebKitDLL.cpp:
            (loadResourceIntoBuffer):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@35532 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    0dbc02df