Title: [106214] trunk/Source/WebKit/chromium
Revision
106214
Author
[email protected]
Date
2012-01-29 22:55:15 -0800 (Sun, 29 Jan 2012)

Log Message

[chromium/mac] Fix two-finger scrolling
https://bugs.webkit.org/show_bug.cgi?id=77316

http://trac.webkit.org/changeset/106021/trunk changed the phase enums
to match AppKit. This changes WebMouseWheelEvent accordingly.

No tests, because DRT doesn't support synthetic scroll events with
event phases.

Patch by Nico Weber <[email protected]> on 2012-01-29
Reviewed by Anders Carlsson.

* public/WebInputEvent.h:
* src/mac/WebInputEventFactory.mm:

Modified Paths

Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (106213 => 106214)


--- trunk/Source/WebKit/chromium/ChangeLog	2012-01-30 05:50:36 UTC (rev 106213)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-01-30 06:55:15 UTC (rev 106214)
@@ -1,3 +1,19 @@
+2012-01-29  Nico Weber  <[email protected]>
+
+        [chromium/mac] Fix two-finger scrolling
+        https://bugs.webkit.org/show_bug.cgi?id=77316
+
+        http://trac.webkit.org/changeset/106021/trunk changed the phase enums
+        to match AppKit. This changes WebMouseWheelEvent accordingly.
+
+        No tests, because DRT doesn't support synthetic scroll events with
+        event phases.
+
+        Reviewed by Anders Carlsson.
+
+        * public/WebInputEvent.h:
+        * src/mac/WebInputEventFactory.mm:
+
 2012-01-28  Sheriff Bot  <[email protected]>
 
         Unreviewed.  Rolled DEPS.

Modified: trunk/Source/WebKit/chromium/public/WebInputEvent.h (106213 => 106214)


--- trunk/Source/WebKit/chromium/public/WebInputEvent.h	2012-01-30 05:50:36 UTC (rev 106213)
+++ trunk/Source/WebKit/chromium/public/WebInputEvent.h	2012-01-30 06:55:15 UTC (rev 106214)
@@ -306,11 +306,12 @@
 public:
     enum Phase {
         PhaseNone        = 0,
-        PhaseBegan       = 1 << 1,
-        PhaseStationary  = 1 << 2,
-        PhaseChanged     = 1 << 3,
-        PhaseEnded       = 1 << 4,
-        PhaseCancelled   = 1 << 5,
+        PhaseBegan       = 1 << 0,
+        PhaseStationary  = 1 << 1,
+        PhaseChanged     = 1 << 2,
+        PhaseEnded       = 1 << 3,
+        PhaseCancelled   = 1 << 4,
+        PhaseMayBegin    = 1 << 5,
     };
 
     float deltaX;

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


--- trunk/Source/WebKit/chromium/src/mac/WebInputEventFactory.mm	2012-01-30 05:50:36 UTC (rev 106213)
+++ trunk/Source/WebKit/chromium/src/mac/WebInputEventFactory.mm	2012-01-30 06:55:15 UTC (rev 106214)
@@ -43,7 +43,8 @@
     NSEventPhaseStationary  = 0x1 << 1,
     NSEventPhaseChanged     = 0x1 << 2,
     NSEventPhaseEnded       = 0x1 << 3,
-    NSEventPhaseCancelled   = 0x1 << 4
+    NSEventPhaseCancelled   = 0x1 << 4,
+    NSEventPhaseMayBegin    = 0x1 << 5
 };
 typedef NSUInteger NSEventPhase;
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to