Title: [206137] trunk/Tools
Revision
206137
Author
wenson_hs...@apple.com
Date
2016-09-19 19:00:10 -0700 (Mon, 19 Sep 2016)

Log Message

Unreviewed build fix after r206135

NSEventMaskLeftMouseDown and friends are only available on 10.12.

* TestWebKitAPI/mac/TestWKWebViewMac.mm:
(__simulated_forceClickAssociatedEventsMask):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (206136 => 206137)


--- trunk/Tools/ChangeLog	2016-09-20 01:05:50 UTC (rev 206136)
+++ trunk/Tools/ChangeLog	2016-09-20 02:00:10 UTC (rev 206137)
@@ -1,5 +1,14 @@
 2016-09-19  Wenson Hsieh  <wenson_hs...@apple.com>
 
+        Unreviewed build fix after r206135
+
+        NSEventMaskLeftMouseDown and friends are only available on 10.12.
+
+        * TestWebKitAPI/mac/TestWKWebViewMac.mm:
+        (__simulated_forceClickAssociatedEventsMask):
+
+2016-09-19  Wenson Hsieh  <wenson_hs...@apple.com>
+
         Add a unit test covering <https://trac.webkit.org/changeset/205983>
         https://bugs.webkit.org/show_bug.cgi?id=162112
 

Modified: trunk/Tools/TestWebKitAPI/mac/TestWKWebViewMac.mm (206136 => 206137)


--- trunk/Tools/TestWebKitAPI/mac/TestWKWebViewMac.mm	2016-09-20 01:05:50 UTC (rev 206136)
+++ trunk/Tools/TestWebKitAPI/mac/TestWKWebViewMac.mm	2016-09-20 02:00:10 UTC (rev 206137)
@@ -70,7 +70,11 @@
 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101003
 NSEventMask __simulated_forceClickAssociatedEventsMask(id self, SEL _cmd)
 {
+#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
     return NSEventMaskPressure | NSEventMaskLeftMouseDown | NSEventMaskLeftMouseUp | NSEventMaskLeftMouseDragged;
+#else
+    return NSEventMaskPressure | (1 << NSLeftMouseDown) | (1 << NSLeftMouseUp) | (1 << NSLeftMouseDragged);
+#endif
 }
 #endif
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to