Changeset 157428 in webkit


Ignore:
Timestamp:
Oct 14, 2013 4:26:45 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

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

Patch by Nick Diego Yamane <nick.yamane@openbossa.org> 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:
Location:
trunk/Source/WebCore
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r157426 r157428  
     12013-10-14  Nick Diego Yamane  <nick.yamane@openbossa.org>
     2
     3        Remove GestureEvent leftovers from WebCore
     4        <https://webkit.org/b/122780>
     5
     6        Reviewed by Anders Carlsson.
     7
     8        - Removed some remaining references to PlatformGestureEvent, supposed to
     9          be removed by r157316
     10        - TOUCH_ADJUSTMENT should be reworked after GestureEvent feature
     11          removal
     12
     13        * page/EventHandler.cpp:
     14        (WebCore::EventHandler::bestZoomableAreaForTouchPoint):
     15        * page/EventHandler.h:
     16        * platform/PlatformEvent.h:
     17        * platform/ScrollAnimatorNone.cpp:
     18        * platform/ScrollableArea.h:
     19
    1202013-10-14  Nick Diego Yamane  <nick.yamane@openbossa.org>
    221
  • trunk/Source/WebCore/page/EventHandler.cpp

    r157316 r157428  
    25672567
    25682568#if ENABLE(TOUCH_ADJUSTMENT)
    2569 bool EventHandler::shouldApplyTouchAdjustment(const PlatformGestureEvent& event) const
    2570 {
    2571     if (!m_frame.settings().touchAdjustmentEnabled())
    2572         return false;
    2573     return !event.area().isEmpty();
    2574 }
    2575 
    2576 
    25772569bool EventHandler::bestClickableNodeForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntPoint& targetPoint, Node*& targetNode)
    25782570{
     
    26082600    IntRect touchRect(touchCenter - touchRadius, touchRadius + touchRadius);
    26092601    return findBestZoomableArea(targetNode, targetArea, touchCenter, touchRect, result.rectBasedTestResult());
    2610 }
    2611 
    2612 bool EventHandler::adjustGesturePosition(const PlatformGestureEvent& gestureEvent, IntPoint& adjustedPoint)
    2613 {
    2614     if (!shouldApplyTouchAdjustment(gestureEvent))
    2615         return false;
    2616 
    2617     Node* targetNode = 0;
    2618     switch (gestureEvent.type()) {
    2619     case PlatformEvent::GestureTap:
    2620     case PlatformEvent::GestureTapDown:
    2621         bestClickableNodeForTouchPoint(gestureEvent.position(), IntSize(gestureEvent.area().width() / 2, gestureEvent.area().height() / 2), adjustedPoint, targetNode);
    2622         break;
    2623     case PlatformEvent::GestureLongPress:
    2624     case PlatformEvent::GestureLongTap:
    2625     case PlatformEvent::GestureTwoFingerTap:
    2626         bestContextMenuNodeForTouchPoint(gestureEvent.position(), IntSize(gestureEvent.area().width() / 2, gestureEvent.area().height() / 2), adjustedPoint, targetNode);
    2627         break;
    2628     default:
    2629         // FIXME: Implement handling for other types as needed.
    2630         ASSERT_NOT_REACHED();
    2631     }
    2632     return targetNode;
    26332602}
    26342603#endif
  • trunk/Source/WebCore/page/EventHandler.h

    r157316 r157428  
    177177
    178178#if ENABLE(TOUCH_ADJUSTMENT)
    179     bool shouldApplyTouchAdjustment(const PlatformGestureEvent&) const;
    180 
    181179    bool bestClickableNodeForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntPoint& targetPoint, Node*& targetNode);
    182180    bool bestContextMenuNodeForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntPoint& targetPoint, Node*& targetNode);
    183181    bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntRect& targetArea, Node*& targetNode);
    184 
    185     bool adjustGesturePosition(const PlatformGestureEvent&, IntPoint& adjustedPoint);
    186182#endif
    187183
  • trunk/Source/WebCore/platform/PlatformEvent.h

    r151840 r157428  
    4848        // PlatformWheelEvent
    4949        Wheel,
    50 
    51         // PlatformGestureEvent
    52         GestureScrollBegin,
    53         GestureScrollEnd,
    54         GestureScrollUpdate,
    55         GestureScrollUpdateWithoutPropagation,
    56         GestureTap,
    57         GestureTapDown,
    58         GestureTapDownCancel,
    59         GestureTwoFingerTap,
    60         GestureLongPress,
    61         GestureLongTap,
    6250
    6351#if ENABLE(TOUCH_EVENTS)
  • trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp

    r156795 r157428  
    4242#include <wtf/CurrentTime.h>
    4343#include <wtf/PassOwnPtr.h>
    44 
    45 #if ENABLE(GESTURE_EVENTS)
    46 #include "PlatformGestureEvent.h"
    47 #endif
    4844
    4945using namespace std;
  • trunk/Source/WebCore/platform/ScrollableArea.h

    r157253 r157428  
    3434class FloatPoint;
    3535class GraphicsContext;
    36 class PlatformGestureEvent;
    3736class PlatformWheelEvent;
    3837class ScrollAnimator;
Note: See TracChangeset for help on using the changeset viewer.