Title: [190652] trunk/Tools
Revision
190652
Author
bb...@apple.com
Date
2015-10-06 17:05:37 -0700 (Tue, 06 Oct 2015)

Log Message

Unreviewed, try to fix the iOS 8 build after r190368.

On older versions, IOHIDEventCreateForceEvent is not available.

* WebKitTestRunner/ios/HIDEventGenerator.mm:
(-[HIDEventGenerator _createIOHIDEventType:]): Add another guard for force events.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (190651 => 190652)


--- trunk/Tools/ChangeLog	2015-10-06 23:22:39 UTC (rev 190651)
+++ trunk/Tools/ChangeLog	2015-10-07 00:05:37 UTC (rev 190652)
@@ -1,3 +1,12 @@
+2015-10-06  Brian Burg  <bb...@apple.com>
+
+        Unreviewed, try to fix the iOS 8 build after r190368.
+
+        On older versions, IOHIDEventCreateForceEvent is not available.
+
+        * WebKitTestRunner/ios/HIDEventGenerator.mm:
+        (-[HIDEventGenerator _createIOHIDEventType:]): Add another guard for force events.
+
 2015-10-06  Keith Miller  <keith_mil...@apple.com>
 
         Add gmalloc option to run-_javascript_core-tests.

Modified: trunk/Tools/WebKitTestRunner/ios/HIDEventGenerator.mm (190651 => 190652)


--- trunk/Tools/WebKitTestRunner/ios/HIDEventGenerator.mm	2015-10-06 23:22:39 UTC (rev 190651)
+++ trunk/Tools/WebKitTestRunner/ios/HIDEventGenerator.mm	2015-10-07 00:05:37 UTC (rev 190652)
@@ -205,6 +205,7 @@
         IOHIDEventAppendEvent(eventRef.get(), subEvent.get(), 0);
     }
 
+#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 90000
     if (_activePointCount) {
         IOHIDFloat progress = _activePoints[0].pathPressure;
         RetainPtr<IOHIDEventRef> forceEvent = adoptCF(IOHIDEventCreateForceEvent(kCFAllocatorDefault,
@@ -216,6 +217,7 @@
             kIOHIDEventOptionNone));
         IOHIDEventAppendEvent(eventRef.get(), forceEvent.get(), 0);
     }
+#endif
 
     return eventRef.leakRef();
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to