Title: [122477] trunk/Source/WebKit/chromium
Revision
122477
Author
[email protected]
Date
2012-07-12 10:11:39 -0700 (Thu, 12 Jul 2012)

Log Message

[chromium][Mac] r122400 broke 10.6 build
https://bugs.webkit.org/show_bug.cgi?id=91103

Patch by Robert Sesek <[email protected]> on 2012-07-12
Reviewed by Tony Chang.

Use the right availability macros for forward-declaring methods and
defining constants.

* src/mac/WebInputEventFactory.mm:

Modified Paths

Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (122476 => 122477)


--- trunk/Source/WebKit/chromium/ChangeLog	2012-07-12 17:10:56 UTC (rev 122476)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-07-12 17:11:39 UTC (rev 122477)
@@ -1,3 +1,15 @@
+2012-07-12  Robert Sesek  <[email protected]>
+
+        [chromium][Mac] r122400 broke 10.6 build
+        https://bugs.webkit.org/show_bug.cgi?id=91103
+
+        Reviewed by Tony Chang.
+
+        Use the right availability macros for forward-declaring methods and
+        defining constants.
+
+        * src/mac/WebInputEventFactory.mm:
+
 2012-07-12  Peter Beverloo  <[email protected]>
 
         [Chromium] Enable building APKs for TestWebKitAPI and webkit_unit_tests

Modified: trunk/Source/WebKit/chromium/src/mac/WebInputEventFactory.mm (122476 => 122477)


--- trunk/Source/WebKit/chromium/src/mac/WebInputEventFactory.mm	2012-07-12 17:10:56 UTC (rev 122476)
+++ trunk/Source/WebKit/chromium/src/mac/WebInputEventFactory.mm	2012-07-12 17:11:39 UTC (rev 122477)
@@ -28,13 +28,14 @@
 #include "WebInputEventFactory.h"
 
 #include <ApplicationServices/ApplicationServices.h>
+#include <Availability.h>
 #import <Cocoa/Cocoa.h>
 
 #import "KeyEventCocoa.h"
 #include "WebInputEvent.h"
 #include <wtf/ASCIICType.h>
 
-#if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1060
+#if __MAC_OS_X_VERSION_MAX_ALLOWED < 1070
 
 // Additional Lion APIs.
 enum {
@@ -53,9 +54,9 @@
 - (NSEventPhase)momentumPhase;
 @end
 
-#endif  // __MAC_OS_X_VERSION_MIN_REQUIRED <= 1060
+#endif  // __MAC_OS_X_VERSION_MAX_ALLOWED < 1070
 
-#if __MAC_OS_X_VERSION_MIN_REQUIRED == 1050
+#if __MAC_OS_X_VERSION_MAX_ALLOWED <= 1050
 
 // These are not defined in the 10.5 SDK but are defined in later SDKs inside
 // a MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 #ifdef.
@@ -64,7 +65,7 @@
     NSEventTypeEndGesture       = 20
 };
 
-#endif  // __MAC_OS_X_VERSION_MIN_REQUIRED == 1050
+#endif  // __MAC_OS_X_VERSION_MAX_ALLOWED <= 1050
 
 namespace WebKit {
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to