Changeset 189868 in webkit


Ignore:
Timestamp:
Sep 16, 2015 10:24:07 AM (9 years ago)
Author:
mitz@apple.com
Message:

[iOS] Unifiy WebKit2PlatformTouchPoint definition
https://bugs.webkit.org/show_bug.cgi?id=149221

Reviewed by Darin Adler.

  • Shared/WebEventConversion.cpp:

(WebKit::touchEventType):
(WebKit::WebKit2PlatformTouchPoint::WebKit2PlatformTouchPoint):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r189854 r189868  
     12015-09-16  Dan Bernstein  <mitz@apple.com>
     2
     3        [iOS] Unifiy WebKit2PlatformTouchPoint definition
     4        https://bugs.webkit.org/show_bug.cgi?id=149221
     5
     6        Reviewed by Darin Adler.
     7
     8        * Shared/WebEventConversion.cpp:
     9        (WebKit::touchEventType):
     10        (WebKit::WebKit2PlatformTouchPoint::WebKit2PlatformTouchPoint):
     11
    1122015-09-16  Carlos Garcia Campos  <cgarcia@igalia.com>
    213
  • trunk/Source/WebKit2/Shared/WebEventConversion.cpp

    r186148 r189868  
    223223
    224224#if PLATFORM(IOS)
     225
    225226static WebCore::PlatformTouchPoint::TouchPhaseType touchEventType(const WebPlatformTouchPoint& webTouchPoint)
    226227{
     
    239240}
    240241
    241 #if ENABLE(IOS_TOUCH_EVENTS)
    242 #include <WebKitAdditions/WebEventConversionIOS.cpp>
    243 #else
    244242class WebKit2PlatformTouchPoint : public WebCore::PlatformTouchPoint {
    245243public:
    246244WebKit2PlatformTouchPoint(const WebPlatformTouchPoint& webTouchPoint)
    247     : PlatformTouchPoint(webTouchPoint.identifier(), webTouchPoint.location(), touchEventType(webTouchPoint))
    248 {
    249 }
    250 };
    251 #endif // ENABLE(IOS_TOUCH_EVENTS)
     245    : PlatformTouchPoint(webTouchPoint.identifier(), webTouchPoint.location(), touchEventType(webTouchPoint)
     246#if ENABLE(IOS_TOUCH_EVENTS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 90000
     247    , webTouchPoint.force()
     248#endif
     249    )
     250{
     251}
     252};
    252253
    253254#else
Note: See TracChangeset for help on using the changeset viewer.