Changeset 107036 in webkit
- Timestamp:
- Feb 7, 2012 9:06:33 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 10 deleted
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r107035 r107036 1 2012-02-07 Robert Kroeger <rjkroege@chromium.org> 2 3 [chromium] Remove unnecessary Chromium gesture recognizer tests. 4 https://bugs.webkit.org/show_bug.cgi?id=77492 5 6 Reviewed by Adam Barth. 7 8 * fast/events/touch/page-scaled-touch-gesture-click-expected.txt: 9 * fast/events/touch/page-scaled-touch-gesture-click.html: 10 * fast/events/touch/touch-gesture-click-expected.txt: Removed. 11 * fast/events/touch/touch-gesture-click.html: Removed. 12 * fast/events/touch/touch-gesture-scroll-expected.txt: Removed. 13 * fast/events/touch/touch-gesture-scroll.html: Removed. 14 * platform/chromium/fast/events/touch/touch-gesture-click-expected.txt: Removed. 15 * platform/chromium/fast/events/touch/touch-gesture-scroll-expected.txt: Removed. 16 1 17 2012-02-07 Erik Arvidsson <arv@chromium.org> 2 18 -
trunk/LayoutTests/fast/events/touch/page-scaled-touch-gesture-click-expected.txt
r97988 r107036 4 4 5 5 6 have received: 1 touch events7 have received: 2 touch events8 6 PASS event.type is "mousemove" 9 7 PASS event.clientX is 20 10 8 PASS event.clientY is 24 11 PASS event.shiftKey is true12 PASS event.altKey is true9 PASS event.shiftKey is false 10 PASS event.altKey is false 13 11 PASS event.ctrlKey is false 14 12 PASS event.metaKey is false … … 16 14 PASS event.clientX is 20 17 15 PASS event.clientY is 24 18 PASS event.shiftKey is true19 PASS event.altKey is true16 PASS event.shiftKey is false 17 PASS event.altKey is false 20 18 PASS event.ctrlKey is false 21 19 PASS event.metaKey is false … … 23 21 PASS event.clientX is 20 24 22 PASS event.clientY is 24 25 PASS event.shiftKey is true26 PASS event.altKey is true23 PASS event.shiftKey is false 24 PASS event.altKey is false 27 25 PASS event.ctrlKey is false 28 26 PASS event.metaKey is false … … 30 28 PASS event.clientX is 20 31 29 PASS event.clientY is 24 32 PASS event.shiftKey is true33 PASS event.altKey is true30 PASS event.shiftKey is false 31 PASS event.altKey is false 34 32 PASS event.ctrlKey is false 35 33 PASS event.metaKey is false -
trunk/LayoutTests/fast/events/touch/page-scaled-touch-gesture-click.html
r105900 r107036 20 20 var clickEventsReceived = 0; 21 21 var expectedMouseEvents = 4; 22 var touchEventsReceived = 0;23 22 var mouseEventsReceived = 0; 24 23 var eventTypes = [ 'mousemove', 'mousedown', 'mouseup', 'click' ]; … … 30 29 shouldBe('event.clientX', '20'); 31 30 shouldBe('event.clientY', '24'); 32 shouldBe("event.shiftKey", " true");33 shouldBe("event.altKey", " true");31 shouldBe("event.shiftKey", "false"); 32 shouldBe("event.altKey", "false"); 34 33 shouldBe("event.ctrlKey", "false"); 35 34 shouldBe("event.metaKey", "false"); … … 55 54 } 56 55 57 function singleTouchSequence()58 {59 eventSender.clearTouchPoints();60 // Coordinates passed to eventSender.addTouchPoint are in screen pixels,61 // relative to the top left of the window.62 eventSender.addTouchPoint(10, 12);63 eventSender.touchStart();64 65 // Insert some delay. NB: this value depends on minClickDownTime,66 // maxClickDownTime from GestureRecognizerChromium.cpp67 eventSender.leapForward(20);68 eventSender.setTouchModifier("shift", true);69 eventSender.setTouchModifier("alt", true);70 71 eventSender.releaseTouchPoint(0);72 eventSender.touchEnd();73 }74 75 56 function endTest() 76 57 { … … 94 75 div.addEventListener("mousemove", gestureEventCallback, false); 95 76 document.addEventListener("keydown", quitKeyToEndTest, false); 96 div.addEventListener("touchstart", touchEventCallback, false);97 div.addEventListener("touchmove", touchEventCallback, false);98 div.addEventListener("touchend", touchEventCallback, false);99 77 100 78 if (window.layoutTestController) … … 104 82 description("This tests basic single touch gesture generation."); 105 83 if (eventSender.clearTouchPoints) { 106 singleTouchSequence();84 eventSender.gestureTap(10, 12); 107 85 eventSender.leapForward(10); 108 86 eventSender.keyDown(' '); -
trunk/Source/JavaScriptCore/ChangeLog
r107026 r107036 1 2012-02-07 Robert Kroeger <rjkroege@chromium.org> 2 3 [chromium] Remove the enable marcro for the no longer necessary Chromium 4 gesture recognizer. 5 https://bugs.webkit.org/show_bug.cgi?id=77492 6 7 Reviewed by Adam Barth. 8 9 * wtf/Platform.h: 10 1 11 2012-02-07 Tony Chang <tony@chromium.org> 2 12 -
trunk/Source/JavaScriptCore/wtf/Platform.h
r106978 r107036 860 860 #endif 861 861 862 #if !defined(ENABLE_GESTURE_RECOGNIZER)863 #define ENABLE_GESTURE_RECOGNIZER 0864 #endif865 866 862 #if !defined(ENABLE_VIEWPORT) 867 863 #define ENABLE_VIEWPORT 0 -
trunk/Source/WebCore/ChangeLog
r107035 r107036 1 2012-02-07 Robert Kroeger <rjkroege@chromium.org> 2 3 [chromium] Remove the no longer necessary Chromium gesture recognizer. 4 https://bugs.webkit.org/show_bug.cgi?id=77492 5 6 Reviewed by Adam Barth. 7 8 * WebCore.gypi: 9 * platform/PlatformGestureRecognizer.h: Removed. 10 * platform/chromium/FramelessScrollView.h: 11 (WebCore): 12 (FramelessScrollView): 13 * platform/chromium/GestureRecognizerChromium.cpp: Removed. 14 * platform/chromium/GestureRecognizerChromium.h: Removed. 15 * platform/chromium/PopupContainer.cpp: 16 (WebCore): 17 * platform/chromium/PopupContainer.h: 18 * platform/chromium/PopupListBox.cpp: 19 (WebCore): 20 * platform/chromium/PopupListBox.h: 21 (PopupListBox): 22 1 23 2012-02-07 Erik Arvidsson <arv@chromium.org> 2 24 -
trunk/Source/WebCore/WebCore.gypi
r107035 r107036 277 277 'platform/PlatformEvent.h', 278 278 'platform/PlatformGestureEvent.h', 279 'platform/PlatformGestureRecognizer.h',280 279 'platform/PlatformKeyboardEvent.h', 281 280 'platform/PlatformMenuDescription.h', … … 2909 2908 'platform/chromium/FramelessScrollViewClient.h', 2910 2909 'platform/chromium/GamepadsChromium.cpp', 2911 'platform/chromium/GestureRecognizerChromium.cpp',2912 'platform/chromium/GestureRecognizerChromium.h',2913 2910 'platform/chromium/HistogramSupportChromium.cpp', 2914 2911 'platform/chromium/KeyCodeConversion.h', -
trunk/Source/WebCore/platform/chromium/FramelessScrollView.h
r96348 r107036 37 37 38 38 class FramelessScrollViewClient; 39 #if ENABLE(GESTURE_ RECOGNIZER)39 #if ENABLE(GESTURE_EVENTS) 40 40 class PlatformGestureEvent; 41 41 #endif … … 70 70 virtual bool handleTouchEvent(const PlatformTouchEvent&) = 0; 71 71 #endif 72 #if ENABLE(GESTURE_ RECOGNIZER)72 #if ENABLE(GESTURE_EVENTS) 73 73 virtual bool handleGestureEvent(const PlatformGestureEvent&) = 0; 74 74 #endif -
trunk/Source/WebCore/platform/chromium/PopupContainer.cpp
r103297 r107036 293 293 #endif 294 294 295 #if ENABLE(GESTURE_ RECOGNIZER)295 #if ENABLE(GESTURE_EVENTS) 296 296 // FIXME: Refactor this code to share functionality with EventHandler::handleGestureEvent. 297 297 bool PopupContainer::handleGestureEvent(const PlatformGestureEvent& gestureEvent) -
trunk/Source/WebCore/platform/chromium/PopupContainer.h
r95901 r107036 66 66 virtual bool handleTouchEvent(const PlatformTouchEvent&); 67 67 #endif 68 #if ENABLE(GESTURE_ RECOGNIZER)68 #if ENABLE(GESTURE_EVENTS) 69 69 virtual bool handleGestureEvent(const PlatformGestureEvent&); 70 70 #endif -
trunk/Source/WebCore/platform/chromium/PopupListBox.cpp
r103297 r107036 187 187 #endif 188 188 189 #if ENABLE(GESTURE_ RECOGNIZER)189 #if ENABLE(GESTURE_EVENTS) 190 190 bool PopupListBox::handleGestureEvent(const PlatformGestureEvent&) 191 191 { -
trunk/Source/WebCore/platform/chromium/PopupListBox.h
r95901 r107036 124 124 virtual bool handleTouchEvent(const PlatformTouchEvent&); 125 125 #endif 126 #if ENABLE(GESTURE_ RECOGNIZER)126 #if ENABLE(GESTURE_EVENTS) 127 127 virtual bool handleGestureEvent(const PlatformGestureEvent&); 128 128 #endif -
trunk/Source/WebKit/ChangeLog
r107033 r107036 1 2012-02-07 Robert Kroeger <rjkroege@chromium.org> 2 3 [chromium] Remove no longer necessary Chromium gesture recognizer code. 4 https://bugs.webkit.org/show_bug.cgi?id=77492 5 6 Reviewed by Adam Barth. 7 8 * blackberry/WebCoreSupport/AboutDataEnableFeatures.in: 9 1 10 2012-02-07 Leo Yang <leo.yang@torchmobile.com.cn> 2 11 -
trunk/Source/WebKit/blackberry/WebCoreSupport/AboutDataEnableFeatures.in
r102207 r107036 45 45 GEOLOCATION 46 46 GESTURE_EVENTS 47 GESTURE_RECOGNIZER48 47 GGC 49 48 GLIB_SUPPORT -
trunk/Source/WebKit/chromium/ChangeLog
r107014 r107036 1 2012-02-07 Robert Kroeger <rjkroege@chromium.org> 2 3 [chromium] Remove no longer necessary Chromium gesture recognizer code. 4 https://bugs.webkit.org/show_bug.cgi?id=77492 5 6 Reviewed by Adam Barth. 7 8 * WebKit.gypi: 9 * features.gypi: 10 * src/WebFrameImpl.cpp: 11 (WebKit::WebFrameImpl::createFrameView): 12 * src/WebPopupMenuImpl.cpp: 13 (WebKit::WebPopupMenuImpl::WebPopupMenuImpl): 14 (WebKit::WebPopupMenuImpl::handleTouchEvent): 15 * src/WebPopupMenuImpl.h: 16 * src/WebViewImpl.cpp: 17 (WebKit::WebViewImpl::WebViewImpl): 18 (WebKit::WebViewImpl::touchEvent): 19 * src/WebViewImpl.h: 20 (WebCore): 21 (WebViewImpl): 22 * tests/InnerGestureRecognizerTest.cpp: Removed. 23 1 24 2012-02-07 David Reveman <reveman@chromium.org> 2 25 -
trunk/Source/WebKit/chromium/WebKit.gypi
r106399 r107036 97 97 'tests/IDBKeyPathTest.cpp', 98 98 'tests/IDBLevelDBCodingTest.cpp', 99 'tests/InnerGestureRecognizerTest.cpp',100 99 'tests/KeyboardTest.cpp', 101 100 'tests/KURLTest.cpp', -
trunk/Source/WebKit/chromium/features.gypi
r105500 r107036 51 51 'ENABLE_GEOLOCATION=1', 52 52 'ENABLE_GESTURE_EVENTS=1', 53 'ENABLE_GESTURE_RECOGNIZER=1',54 53 'ENABLE_ICONDATABASE=0', 55 54 'ENABLE_INDEXED_DATABASE=1', -
trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp
r106554 r107036 2106 2106 if (webView->shouldAutoResize() && isMainFrame) 2107 2107 m_frame->view()->enableAutoSizeMode(true, webView->minAutoSize(), webView->maxAutoSize()); 2108 2109 #if ENABLE(GESTURE_RECOGNIZER)2110 webView->resetGestureRecognizer();2111 #endif2112 2108 } 2113 2109 -
trunk/Source/WebKit/chromium/src/WebPopupMenuImpl.cpp
r106084 r107036 52 52 #include <skia/ext/platform_canvas.h> 53 53 54 #if ENABLE(GESTURE_ RECOGNIZER)54 #if ENABLE(GESTURE_EVENTS) 55 55 #include "PlatformGestureEvent.h" 56 #include "PlatformGestureRecognizer.h"57 56 #endif 58 57 … … 74 73 : m_client(client) 75 74 , m_widget(0) 76 #if ENABLE(GESTURE_RECOGNIZER)77 , m_gestureRecognizer(WebCore::PlatformGestureRecognizer::create())78 #endif79 75 { 80 76 // Set to impossible point so we always get the first mouse position. … … 144 140 PlatformTouchEventBuilder touchEventBuilder(m_widget, event); 145 141 bool defaultPrevented(m_widget->handleTouchEvent(touchEventBuilder)); 146 #if ENABLE(GESTURE_RECOGNIZER)147 OwnPtr<Vector<WebCore::PlatformGestureEvent> > gestureEvents(m_gestureRecognizer->processTouchEventForGestures(touchEventBuilder, defaultPrevented));148 for (unsigned int i = 0; i < gestureEvents->size(); i++)149 m_widget->handleGestureEvent((*gestureEvents)[i]);150 #endif151 142 return defaultPrevented; 152 143 } -
trunk/Source/WebKit/chromium/src/WebPopupMenuImpl.h
r106084 r107036 140 140 // before it is destroyed. 141 141 WebCore::FramelessScrollView* m_widget; 142 143 #if ENABLE(GESTURE_RECOGNIZER)144 OwnPtr<WebCore::PlatformGestureRecognizer> m_gestureRecognizer;145 #endif146 142 }; 147 143 -
trunk/Source/WebKit/chromium/src/WebViewImpl.cpp
r106951 r107036 149 149 #endif 150 150 151 #if ENABLE(GESTURE_RECOGNIZER)152 #include "PlatformGestureRecognizer.h"153 #endif154 155 151 #if USE(CG) 156 152 #include <CoreGraphics/CGBitmapContext.h> … … 376 372 , m_deviceOrientationClientProxy(adoptPtr(new DeviceOrientationClientProxy(client ? client->deviceOrientationClient() : 0))) 377 373 , m_geolocationClientProxy(adoptPtr(new GeolocationClientProxy(client ? client->geolocationClient() : 0))) 378 #if ENABLE(GESTURE_RECOGNIZER)379 , m_gestureRecognizer(WebCore::PlatformGestureRecognizer::create())380 #endif381 374 #if ENABLE(MEDIA_STREAM) 382 375 , m_userMediaClientImpl(this) … … 801 794 PlatformTouchEventBuilder touchEventBuilder(mainFrameImpl()->frameView(), event); 802 795 bool defaultPrevented = mainFrameImpl()->frame()->eventHandler()->handleTouchEvent(touchEventBuilder); 803 804 #if ENABLE(GESTURE_RECOGNIZER)805 OwnPtr<Vector<WebCore::PlatformGestureEvent> > gestureEvents(m_gestureRecognizer->processTouchEventForGestures(touchEventBuilder, defaultPrevented));806 for (unsigned int i = 0; i < gestureEvents->size(); i++)807 mainFrameImpl()->frame()->eventHandler()->handleGestureEvent(gestureEvents->at(i));808 #endif809 810 796 return defaultPrevented; 811 797 } … … 3181 3167 } 3182 3168 3183 #if ENABLE(GESTURE_RECOGNIZER)3184 void WebViewImpl::resetGestureRecognizer()3185 {3186 m_gestureRecognizer->reset();3187 }3188 #endif3189 3190 3169 #if ENABLE(POINTER_LOCK) 3191 3170 bool WebViewImpl::requestPointerLock() -
trunk/Source/WebKit/chromium/src/WebViewImpl.h
r106951 r107036 69 69 class RenderTheme; 70 70 class Widget; 71 #if ENABLE(GESTURE_RECOGNIZER)72 class PlatformGestureRecognizer;73 #endif74 71 } 75 72 … … 459 456 void fullFramePluginZoomLevelChanged(double zoomLevel); 460 457 461 #if ENABLE(GESTURE_RECOGNIZER)462 void resetGestureRecognizer();463 #endif464 465 458 void loseCompositorContext(int numTimes); 466 459 … … 691 684 OwnPtr<GeolocationClientProxy> m_geolocationClientProxy; 692 685 693 #if ENABLE(GESTURE_RECOGNIZER)694 OwnPtr<WebCore::PlatformGestureRecognizer> m_gestureRecognizer;695 #endif696 697 686 #if ENABLE(MEDIA_STREAM) 698 687 UserMediaClientImpl m_userMediaClientImpl;
Note: See TracChangeset
for help on using the changeset viewer.