Changeset 112127 in webkit


Ignore:
Timestamp:
Mar 26, 2012 10:52:44 AM (12 years ago)
Author:
wjmaclean@chromium.org
Message:

[chromium] Change handleGestureFling() to use CCInputHandlerClient::Wheel.
https://bugs.webkit.org/show_bug.cgi?id=82133

Reviewed by James Robinson.

Source/WebCore:

Covered by existing unit tests.

  • platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:

(WebCore::CCLayerTreeHostImpl::scrollBegin):

Source/WebKit/chromium:

  • src/WebCompositorInputHandlerImpl.cpp:

(WebKit::WebCompositorInputHandlerImpl::handleGestureFling):

  • tests/CCLayerTreeHostImplTest.cpp:

(WebKitTests::TEST_F):

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r112126 r112127  
     12012-03-26  W. James MacLean  <wjmaclean@chromium.org>
     2
     3        [chromium] Change handleGestureFling() to use CCInputHandlerClient::Wheel.
     4        https://bugs.webkit.org/show_bug.cgi?id=82133
     5
     6        Reviewed by James Robinson.
     7
     8        Covered by existing unit tests.
     9
     10        * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
     11        (WebCore::CCLayerTreeHostImpl::scrollBegin):
     12
    1132012-03-26  Mike Lawther  <mikelawther@chromium.org>
    214
  • trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp

    r111971 r112127  
    620620    }
    621621
    622     if ((type == CCInputHandlerClient::Wheel || type == CCInputHandlerClient::Gesture) && m_scrollLayerImpl->haveWheelEventHandlers()) {
     622    if (type == CCInputHandlerClient::Wheel && m_scrollLayerImpl->haveWheelEventHandlers()) {
    623623        TRACE_EVENT("scrollBegin Failed wheelEventHandlers", this, 0);
    624624        return ScrollFailed;
  • trunk/Source/WebKit/chromium/ChangeLog

    r112088 r112127  
     12012-03-26  W. James MacLean  <wjmaclean@chromium.org>
     2
     3        [chromium] Change handleGestureFling() to use CCInputHandlerClient::Wheel.
     4        https://bugs.webkit.org/show_bug.cgi?id=82133
     5
     6        Reviewed by James Robinson.
     7
     8        * src/WebCompositorInputHandlerImpl.cpp:
     9        (WebKit::WebCompositorInputHandlerImpl::handleGestureFling):
     10        * tests/CCLayerTreeHostImplTest.cpp:
     11        (WebKitTests::TEST_F):
     12
    1132012-03-26  Terry Anderson  <tdanderson@chromium.org>
    214
  • trunk/Source/WebKit/chromium/src/WebCompositorInputHandlerImpl.cpp

    r112024 r112127  
    263263WebCompositorInputHandlerImpl::EventDisposition WebCompositorInputHandlerImpl::handleGestureFling(const WebGestureEvent& gestureEvent)
    264264{
    265     CCInputHandlerClient::ScrollStatus scrollStatus = m_inputHandlerClient->scrollBegin(IntPoint(gestureEvent.x, gestureEvent.y), CCInputHandlerClient::Gesture);
     265    CCInputHandlerClient::ScrollStatus scrollStatus = m_inputHandlerClient->scrollBegin(IntPoint(gestureEvent.x, gestureEvent.y), CCInputHandlerClient::Wheel);
    266266    switch (scrollStatus) {
    267267    case CCInputHandlerClient::ScrollStarted: {
  • trunk/Source/WebKit/chromium/tests/CCLayerTreeHostImplTest.cpp

    r111971 r112127  
    204204
    205205    root->setHaveWheelEventHandlers(true);
    206     // With registered event handlers, wheel and gesture scrolls have to go to the main thread.
     206    // With registered event handlers, wheel scrolls have to go to the main thread.
    207207    EXPECT_EQ(m_hostImpl->scrollBegin(IntPoint(0, 0), CCInputHandlerClient::Wheel), CCInputHandlerClient::ScrollFailed);
    208     EXPECT_EQ(m_hostImpl->scrollBegin(IntPoint(0, 0), CCInputHandlerClient::Gesture), CCInputHandlerClient::ScrollFailed);
     208
     209    // But gesture scrolls can still be handled.
     210    EXPECT_EQ(m_hostImpl->scrollBegin(IntPoint(0, 0), CCInputHandlerClient::Gesture), CCInputHandlerClient::ScrollStarted);
    209211}
    210212
Note: See TracChangeset for help on using the changeset viewer.