Changeset 157428 in webkit
- Timestamp:
- Oct 14, 2013 4:26:45 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r157426 r157428 1 2013-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 1 20 2013-10-14 Nick Diego Yamane <nick.yamane@openbossa.org> 2 21 -
trunk/Source/WebCore/page/EventHandler.cpp
r157316 r157428 2567 2567 2568 2568 #if ENABLE(TOUCH_ADJUSTMENT) 2569 bool EventHandler::shouldApplyTouchAdjustment(const PlatformGestureEvent& event) const2570 {2571 if (!m_frame.settings().touchAdjustmentEnabled())2572 return false;2573 return !event.area().isEmpty();2574 }2575 2576 2577 2569 bool EventHandler::bestClickableNodeForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntPoint& targetPoint, Node*& targetNode) 2578 2570 { … … 2608 2600 IntRect touchRect(touchCenter - touchRadius, touchRadius + touchRadius); 2609 2601 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;2633 2602 } 2634 2603 #endif -
trunk/Source/WebCore/page/EventHandler.h
r157316 r157428 177 177 178 178 #if ENABLE(TOUCH_ADJUSTMENT) 179 bool shouldApplyTouchAdjustment(const PlatformGestureEvent&) const;180 181 179 bool bestClickableNodeForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntPoint& targetPoint, Node*& targetNode); 182 180 bool bestContextMenuNodeForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntPoint& targetPoint, Node*& targetNode); 183 181 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntRect& targetArea, Node*& targetNode); 184 185 bool adjustGesturePosition(const PlatformGestureEvent&, IntPoint& adjustedPoint);186 182 #endif 187 183 -
trunk/Source/WebCore/platform/PlatformEvent.h
r151840 r157428 48 48 // PlatformWheelEvent 49 49 Wheel, 50 51 // PlatformGestureEvent52 GestureScrollBegin,53 GestureScrollEnd,54 GestureScrollUpdate,55 GestureScrollUpdateWithoutPropagation,56 GestureTap,57 GestureTapDown,58 GestureTapDownCancel,59 GestureTwoFingerTap,60 GestureLongPress,61 GestureLongTap,62 50 63 51 #if ENABLE(TOUCH_EVENTS) -
trunk/Source/WebCore/platform/ScrollAnimatorNone.cpp
r156795 r157428 42 42 #include <wtf/CurrentTime.h> 43 43 #include <wtf/PassOwnPtr.h> 44 45 #if ENABLE(GESTURE_EVENTS)46 #include "PlatformGestureEvent.h"47 #endif48 44 49 45 using namespace std; -
trunk/Source/WebCore/platform/ScrollableArea.h
r157253 r157428 34 34 class FloatPoint; 35 35 class GraphicsContext; 36 class PlatformGestureEvent;37 36 class PlatformWheelEvent; 38 37 class ScrollAnimator;
Note: See TracChangeset
for help on using the changeset viewer.