Changeset 207413 in webkit


Ignore:
Timestamp:
Oct 17, 2016 10:48:28 AM (8 years ago)
Author:
Chris Dumez
Message:

[iOS] Hook up WebPlatformTouchPoint's radiusX / radiusY to _UIWebTouchPoint.majorRadiusInScreenCoordinates
https://bugs.webkit.org/show_bug.cgi?id=163547

Reviewed by Darin Adler.

Hook up WebPlatformTouchPoint's radiusX / radiusY to _UIWebTouchPoint.majorRadiusInScreenCoordinates
now that it is available in UIKit.

  • Platform/spi/ios/UIKitSPI.h:
  • Shared/ios/NativeWebTouchEventIOS.mm:

(WebKit::NativeWebTouchEvent::extractWebTouchPoint):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r207407 r207413  
     12016-10-17  Chris Dumez  <cdumez@apple.com>
     2
     3        [iOS] Hook up WebPlatformTouchPoint's radiusX / radiusY to _UIWebTouchPoint.majorRadiusInScreenCoordinates
     4        https://bugs.webkit.org/show_bug.cgi?id=163547
     5
     6        Reviewed by Darin Adler.
     7
     8        Hook up WebPlatformTouchPoint's radiusX / radiusY to _UIWebTouchPoint.majorRadiusInScreenCoordinates
     9        now that it is available in UIKit.
     10
     11        * Platform/spi/ios/UIKitSPI.h:
     12        * Shared/ios/NativeWebTouchEventIOS.mm:
     13        (WebKit::NativeWebTouchEvent::extractWebTouchPoint):
     14
    1152016-10-17  Konstantin Tokarev  <annulen@yandex.ru>
    216
  • trunk/Source/WebKit2/Platform/spi/ios/UIKitSPI.h

    r206651 r207413  
    655655    UITouchPhase phase;
    656656#if __IPHONE_OS_VERSION_MIN_REQUIRED > 100000
    657     // FIXME: Uncomment this once UIKit is updated (rdar://problem/28555313).
    658     // CGFloat majorRadiusInScreenCoordinates;
     657    CGFloat majorRadiusInScreenCoordinates;
    659658    CGFloat force;
    660659    CGFloat altitudeAngle;
  • trunk/Source/WebKit2/Shared/ios/NativeWebTouchEventIOS.mm

    r206651 r207413  
    104104        WebPlatformTouchPoint platformTouchPoint = WebPlatformTouchPoint(identifier, location, phase);
    105105#if ENABLE(IOS_TOUCH_EVENTS)
    106         // FIXME: We should use touchPoint.majorRadiusInScreenCoordinates for radiusX / radiusY once it is available (rdar://problem/28555313).
    107         platformTouchPoint.setRadiusX(0);
    108         platformTouchPoint.setRadiusY(0);
     106        platformTouchPoint.setRadiusX(touchPoint.majorRadiusInScreenCoordinates);
     107        platformTouchPoint.setRadiusY(touchPoint.majorRadiusInScreenCoordinates);
    109108        platformTouchPoint.setRotationAngle(0); // Not available in _UIWebTouchEvent yet.
    110109        platformTouchPoint.setForce(touchPoint.force);
Note: See TracChangeset for help on using the changeset viewer.