Title: [157428] trunk/Source/WebCore
Revision
157428
Author
[email protected]
Date
2013-10-14 16:26:45 -0700 (Mon, 14 Oct 2013)

Log Message

Remove GestureEvent leftovers from WebCore
<https://webkit.org/b/122780>

Patch by Nick Diego Yamane <[email protected]> on 2013-10-14
Reviewed by Anders Carlsson.

- Removed some remaining references to PlatformGestureEvent, supposed to
  be removed by r157316
- TOUCH_ADJUSTMENT should be reworked after GestureEvent feature
  removal

* page/EventHandler.cpp:
(WebCore::EventHandler::bestZoomableAreaForTouchPoint):
* page/EventHandler.h:
* platform/PlatformEvent.h:
* platform/ScrollAnimatorNone.cpp:
* platform/ScrollableArea.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (157427 => 157428)


--- trunk/Source/WebCore/ChangeLog	2013-10-14 23:22:38 UTC (rev 157427)
+++ trunk/Source/WebCore/ChangeLog	2013-10-14 23:26:45 UTC (rev 157428)
@@ -1,5 +1,24 @@
 2013-10-14  Nick Diego Yamane  <[email protected]>
 
+        Remove GestureEvent leftovers from WebCore
+        <https://webkit.org/b/122780>
+
+        Reviewed by Anders Carlsson.
+
+        - Removed some remaining references to PlatformGestureEvent, supposed to
+          be removed by r157316
+        - TOUCH_ADJUSTMENT should be reworked after GestureEvent feature
+          removal
+
+        * page/EventHandler.cpp:
+        (WebCore::EventHandler::bestZoomableAreaForTouchPoint):
+        * page/EventHandler.h:
+        * platform/PlatformEvent.h:
+        * platform/ScrollAnimatorNone.cpp:
+        * platform/ScrollableArea.h:
+
+2013-10-14  Nick Diego Yamane  <[email protected]>
+
         Build fix after r157366
         http://bugs.webkit.org/show_bug.cgi?id=122783
 

Modified: trunk/Source/WebCore/page/EventHandler.cpp (157427 => 157428)


--- trunk/Source/WebCore/page/EventHandler.cpp	2013-10-14 23:22:38 UTC (rev 157427)
+++ trunk/Source/WebCore/page/EventHandler.cpp	2013-10-14 23:26:45 UTC (rev 157428)
@@ -2566,14 +2566,6 @@
 }
 
 #if ENABLE(TOUCH_ADJUSTMENT)
-bool EventHandler::shouldApplyTouchAdjustment(const PlatformGestureEvent& event) const
-{
-    if (!m_frame.settings().touchAdjustmentEnabled())
-        return false;
-    return !event.area().isEmpty();
-}
-
-
 bool EventHandler::bestClickableNodeForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntPoint& targetPoint, Node*& targetNode)
 {
     IntPoint hitTestPoint = m_frame.view()->windowToContents(touchCenter);
@@ -2608,29 +2600,6 @@
     IntRect touchRect(touchCenter - touchRadius, touchRadius + touchRadius);
     return findBestZoomableArea(targetNode, targetArea, touchCenter, touchRect, result.rectBasedTestResult());
 }
-
-bool EventHandler::adjustGesturePosition(const PlatformGestureEvent& gestureEvent, IntPoint& adjustedPoint)
-{
-    if (!shouldApplyTouchAdjustment(gestureEvent))
-        return false;
-
-    Node* targetNode = 0;
-    switch (gestureEvent.type()) {
-    case PlatformEvent::GestureTap:
-    case PlatformEvent::GestureTapDown:
-        bestClickableNodeForTouchPoint(gestureEvent.position(), IntSize(gestureEvent.area().width() / 2, gestureEvent.area().height() / 2), adjustedPoint, targetNode);
-        break;
-    case PlatformEvent::GestureLongPress:
-    case PlatformEvent::GestureLongTap:
-    case PlatformEvent::GestureTwoFingerTap:
-        bestContextMenuNodeForTouchPoint(gestureEvent.position(), IntSize(gestureEvent.area().width() / 2, gestureEvent.area().height() / 2), adjustedPoint, targetNode);
-        break;
-    default:
-        // FIXME: Implement handling for other types as needed.
-        ASSERT_NOT_REACHED();
-    }
-    return targetNode;
-}
 #endif
 
 #if ENABLE(CONTEXT_MENUS)

Modified: trunk/Source/WebCore/page/EventHandler.h (157427 => 157428)


--- trunk/Source/WebCore/page/EventHandler.h	2013-10-14 23:22:38 UTC (rev 157427)
+++ trunk/Source/WebCore/page/EventHandler.h	2013-10-14 23:26:45 UTC (rev 157428)
@@ -176,13 +176,9 @@
     bool handlePasteGlobalSelection(const PlatformMouseEvent&);
 
 #if ENABLE(TOUCH_ADJUSTMENT)
-    bool shouldApplyTouchAdjustment(const PlatformGestureEvent&) const;
-
     bool bestClickableNodeForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntPoint& targetPoint, Node*& targetNode);
     bool bestContextMenuNodeForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntPoint& targetPoint, Node*& targetNode);
     bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntRect& targetArea, Node*& targetNode);
-
-    bool adjustGesturePosition(const PlatformGestureEvent&, IntPoint& adjustedPoint);
 #endif
 
 #if ENABLE(CONTEXT_MENUS)

Modified: trunk/Source/WebCore/platform/PlatformEvent.h (157427 => 157428)


--- trunk/Source/WebCore/platform/PlatformEvent.h	2013-10-14 23:22:38 UTC (rev 157427)
+++ trunk/Source/WebCore/platform/PlatformEvent.h	2013-10-14 23:26:45 UTC (rev 157428)
@@ -48,18 +48,6 @@
         // PlatformWheelEvent
         Wheel,
 
-        // PlatformGestureEvent
-        GestureScrollBegin,
-        GestureScrollEnd,
-        GestureScrollUpdate,
-        GestureScrollUpdateWithoutPropagation,
-        GestureTap,
-        GestureTapDown,
-        GestureTapDownCancel,
-        GestureTwoFingerTap,
-        GestureLongPress,
-        GestureLongTap,
-
 #if ENABLE(TOUCH_EVENTS)
         // PlatformTouchEvent
         TouchStart,

Modified: trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp (157427 => 157428)


--- trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp	2013-10-14 23:22:38 UTC (rev 157427)
+++ trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp	2013-10-14 23:26:45 UTC (rev 157428)
@@ -42,10 +42,6 @@
 #include <wtf/CurrentTime.h>
 #include <wtf/PassOwnPtr.h>
 
-#if ENABLE(GESTURE_EVENTS)
-#include "PlatformGestureEvent.h"
-#endif
-
 using namespace std;
 
 namespace WebCore {

Modified: trunk/Source/WebCore/platform/ScrollableArea.h (157427 => 157428)


--- trunk/Source/WebCore/platform/ScrollableArea.h	2013-10-14 23:22:38 UTC (rev 157427)
+++ trunk/Source/WebCore/platform/ScrollableArea.h	2013-10-14 23:26:45 UTC (rev 157428)
@@ -33,7 +33,6 @@
 
 class FloatPoint;
 class GraphicsContext;
-class PlatformGestureEvent;
 class PlatformWheelEvent;
 class ScrollAnimator;
 #if USE(ACCELERATED_COMPOSITING)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to