Changeset 126102 in webkit


Ignore:
Timestamp:
Aug 20, 2012 5:20:43 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[BLACKBERRY] Add notification if an element does not have touch move or mouse move handlers.
https://bugs.webkit.org/show_bug.cgi?id=94529

Patch by Genevieve Mak <gmak@rim.com> on 2012-08-20
Reviewed by George Staikos.

Send a notification to the client if the fat finger element does
not have a mouse move or touch move handler or if it is empty.
PR #177701

Reviewed Internally By Mike Lattanzio and Antonio Gomes.

  • Api/WebPageClient.h:
  • WebKitSupport/TouchEventHandler.cpp:

(BlackBerry::WebKit::TouchEventHandler::handleTouchPoint):

Location:
trunk/Source/WebKit/blackberry
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/WebPageClient.h

    r125679 r126102  
    102102
    103103    virtual void notifyInRegionScrollingStartingPointChanged(const std::vector<Platform::ScrollViewBase*>&) = 0;
     104    virtual void notifyNoMouseMoveOrTouchMoveHandlers() = 0;
    104105
    105106    virtual void notifyDocumentOnLoad() = 0;
  • trunk/Source/WebKit/blackberry/ChangeLog

    r125933 r126102  
     12012-08-20  Genevieve Mak  <gmak@rim.com>
     2
     3        [BLACKBERRY] Add notification if an element does not have touch move or mouse move handlers.
     4        https://bugs.webkit.org/show_bug.cgi?id=94529
     5
     6        Reviewed by George Staikos.
     7
     8        Send a notification to the client if the fat finger element does
     9        not have a mouse move or touch move handler or if it is empty.
     10        PR #177701
     11
     12        Reviewed Internally By Mike Lattanzio and Antonio Gomes.
     13
     14        * Api/WebPageClient.h:
     15        * WebKitSupport/TouchEventHandler.cpp:
     16        (BlackBerry::WebKit::TouchEventHandler::handleTouchPoint):
     17
    1182012-08-17  Antonio Gomes  <agomes@rim.com>
    219
  • trunk/Source/WebKit/blackberry/WebKitSupport/TouchEventHandler.cpp

    r125585 r126102  
    197197            m_convertTouchToMouse = pureWithMouseConversion ? true : shouldConvertTouchToMouse(possibleTargetNodeForMouseMoveEvents);
    198198
     199            if (!possibleTargetNodeForMouseMoveEvents || (!possibleTargetNodeForMouseMoveEvents->hasEventListeners(eventNames().touchmoveEvent) && !m_convertTouchToMouse))
     200                m_webPage->client()->notifyNoMouseMoveOrTouchMoveHandlers();
     201
    199202            if (elementUnderFatFinger)
    200203                drawTapHighlight();
Note: See TracChangeset for help on using the changeset viewer.