Changeset 146378 in webkit
- Timestamp:
- Mar 20, 2013, 12:27:19 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r146377 r146378 1 2013-03-20 Yufeng Shen <miletus@chromium.org> 2 3 Remove PlatformEvent::GestureDoubleTap 4 https://bugs.webkit.org/show_bug.cgi?id=93045 5 6 Reviewed by Antonio Gomes. 7 8 PlatformEvent::GestureDoubleTap is not currently 9 used in WebCore and replaced by GestureTap with 10 tap count 2, so remove it. 11 12 Test: We are removing something that is not used, so 13 no new test. All existing tests pass. 14 15 * dom/GestureEvent.cpp: 16 (WebCore::GestureEvent::create): 17 * page/EventHandler.cpp: 18 (WebCore::EventHandler::handleGestureEvent): 19 * platform/PlatformEvent.h: 20 * platform/chromium/PopupContainer.cpp: 21 (WebCore::PopupContainer::handleGestureEvent): 22 1 23 2013-03-20 Ojan Vafai <ojan@chromium.org> 2 24 -
trunk/Source/WebCore/dom/GestureEvent.cpp
r145524 r146378 54 54 case PlatformEvent::GestureTapDown: 55 55 eventType = eventNames().gesturetapdownEvent; break; 56 case PlatformEvent::GestureDoubleTap:57 56 case PlatformEvent::GestureTwoFingerTap: 58 57 case PlatformEvent::GestureLongPress: -
trunk/Source/WebCore/page/EventHandler.cpp
r146224 r146378 2455 2455 bool EventHandler::handleGestureEvent(const PlatformGestureEvent& gestureEvent) 2456 2456 { 2457 // We don't use DoubleTap at the moment, it's mostly redundant with tap since tap now contains2458 // a tap count. FIXME: We should probably remove GestureDoubleTap (http://wkb.ug/93045).2459 if (gestureEvent.type() == PlatformEvent::GestureDoubleTap)2460 return false;2461 2462 2457 Node* eventTarget = 0; 2463 2458 Scrollbar* scrollbar = 0; … … 2546 2541 case PlatformEvent::GestureTwoFingerTap: 2547 2542 return handleGestureTwoFingerTap(gestureEvent); 2548 case PlatformEvent::GestureDoubleTap:2549 2543 case PlatformEvent::GesturePinchBegin: 2550 2544 case PlatformEvent::GesturePinchEnd: -
trunk/Source/WebCore/platform/PlatformEvent.h
r142057 r146378 57 57 GestureTapDown, 58 58 GestureTapDownCancel, 59 GestureDoubleTap,60 59 GestureTwoFingerTap, 61 60 GestureLongPress, -
trunk/Source/WebCore/platform/chromium/PopupContainer.cpp
r145453 r146378 320 320 return true; 321 321 } 322 case PlatformEvent::GestureDoubleTap:323 break;324 322 case PlatformEvent::GestureScrollUpdate: 325 323 case PlatformEvent::GestureScrollUpdateWithoutPropagation: { -
trunk/Source/WebKit/chromium/ChangeLog
r146351 r146378 1 2013-03-20 Yufeng Shen <miletus@chromium.org> 2 3 Remove PlatformEvent::GestureDoubleTap 4 https://bugs.webkit.org/show_bug.cgi?id=93045 5 6 Reviewed by Antonio Gomes. 7 8 PlatformEvent::GestureDoubleTap is not currently 9 used in WebCore so remove it. 10 11 * src/WebInputEventConversion.cpp: 12 (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder): 13 1 14 2013-03-20 Justin Novosad <junov@google.com> 2 15 -
trunk/Source/WebKit/chromium/src/WebInputEventConversion.cpp
r143032 r146378 187 187 m_type = PlatformEvent::GestureTapDownCancel; 188 188 break; 189 case WebInputEvent::GestureDoubleTap:190 m_type = PlatformEvent::GestureDoubleTap;191 break;192 189 case WebInputEvent::GestureTwoFingerTap: 193 190 m_type = PlatformEvent::GestureTwoFingerTap; -
trunk/Source/WebKit/chromium/src/WebViewImpl.cpp
r146091 r146378 828 828 m_client->cancelScheduledContentIntents(); 829 829 animateZoomAroundPoint(platformEvent.position(), DoubleTap); 830 eventSwallowed = true;831 break;832 830 } 831 // GestureDoubleTap is currently only used by Android for zooming. For WebCore, 832 // GestureTap with tap count = 2 is used instead. So we drop GestureDoubleTap here. 833 eventSwallowed = true; 834 break; 833 835 case WebInputEvent::GestureScrollBegin: 834 836 case WebInputEvent::GesturePinchBegin:
Note:
See TracChangeset
for help on using the changeset viewer.