• scheib@chromium.org's avatar
    Remove old Pointer Lock API. · 03edde3b
    scheib@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=88892
    
    Reviewed by Adam Barth.
    
    Source/WebCore:
    
    Removing the old Pointer Lock API as one of the final cleanup
    changes for the Update to Fullscreen style locking Spec meta
    bug https://bugs.webkit.org/show_bug.cgi?id=84402.
    
    This change primarily removes idl, access in navigator,
    one event, and supporting infrastructure in page/PointerLock.
    
    In PointerLockController changes were already noted clearly with
    TODOs differentiating old and new api sections.
    
    Test: pointer-lock/pointerlockchange-event-on-lock-lost.html
    
    * WebCore.gypi:
    * dom/Element.cpp:
    (WebCore::Element::webkitRequestPointerLock):
    * dom/EventNames.h:
    (WebCore):
    * page/Navigator.cpp:
    * page/Navigator.h:
    (WebCore):
    (Navigator):
    * page/Navigator.idl:
    * page/PointerLock.cpp: Removed.
    * page/PointerLock.h: Removed.
    * page/PointerLock.idl: Removed.
    * page/PointerLockController.cpp:
    (WebCore::PointerLockController::requestPointerLock):
    (WebCore::PointerLockController::didAcquirePointerLock):
    (WebCore::PointerLockController::didNotAcquirePointerLock):
    (WebCore::PointerLockController::didLosePointerLock):
    * page/PointerLockController.h:
    (PointerLockController):
    
    Source/WebKit/chromium:
    
    * src/WebViewImpl.cpp:
        Removed #include to old API header.
    
    LayoutTests:
    
    Tests for old API removed, and most remaining tests required only small
    changes.
    
    * platform/chromium/fast/dom/navigator-detached-no-crash-expected.txt:
    * pointer-lock/lock-already-locked-expected.txt:
    * pointer-lock/lock-already-locked.html:
    * pointer-lock/lock-fail-responses-expected.txt: Removed.
    * pointer-lock/lock-fail-responses.html: Removed.
        This test only covered the old API. The related concept is tested
        for the new api in pointerlockchange-pointerlockerror-events.html.
    * pointer-lock/pointer-lock-api-expected.txt:
    * pointer-lock/pointer-lock-api.html:
    * pointer-lock/pointerlockchange-event-on-lock-lost-expected.txt: Added.
    * pointer-lock/pointerlockchange-event-on-lock-lost.html: Added.
    * pointer-lock/pointerlocklost-event-expected.txt: Removed.
    * pointer-lock/pointerlocklost-event.html: Removed.
        pointerlocklost-event.html renamed to pointerlockchange-event-on-lock-lost.html.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124535 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    03edde3b
lock-already-locked.html 2.33 KB