Changeset 96557 in webkit


Ignore:
Timestamp:
Oct 3, 2011 4:54:26 PM (13 years ago)
Author:
jamesr@google.com
Message:

[chromium] Tweak WebCompositor API for input event handling to express three possible states
https://bugs.webkit.org/show_bug.cgi?id=69304

Reviewed by Darin Fisher.

  • public/WebCompositorClient.h:
  • src/WebCompositorImpl.cpp:

(WebKit::WebCompositorImpl::~WebCompositorImpl):
(WebKit::WebCompositorImpl::handleInputEvent):

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

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r96549 r96557  
     12011-10-03  James Robinson  <jamesr@chromium.org>
     2
     3        [chromium] Tweak WebCompositor API for input event handling to express three possible states
     4        https://bugs.webkit.org/show_bug.cgi?id=69304
     5
     6        Reviewed by Darin Fisher.
     7
     8        * public/WebCompositorClient.h:
     9        * src/WebCompositorImpl.cpp:
     10        (WebKit::WebCompositorImpl::~WebCompositorImpl):
     11        (WebKit::WebCompositorImpl::handleInputEvent):
     12
    1132011-10-03  Anders Carlsson  <andersca@apple.com>
    214
  • trunk/Source/WebKit/chromium/public/WebCompositorClient.h

    r96430 r96557  
    3333    // Callbacks invoked from the compositor thread.
    3434    virtual void willShutdown() = 0;
    35     virtual void didHandleInputEvent(bool processed) = 0;
     35
     36    // Exactly one of the following two callbacks will be invoked after every call to WebCompositor::handleInputEvent():
     37
     38    // Called when the WebCompositor handled the input event and no further processing is required.
     39    virtual void didHandleInputEvent() = 0;
     40
     41    // Called when the WebCompositor did not handle the input event. If sendToWidget is true, the input event
     42    // should be forwarded to the WebWidget associated with this compositor for further processing.
     43    virtual void didNotHandleInputEvent(bool sendToWidget) = 0;
    3644
    3745protected:
  • trunk/Source/WebKit/chromium/src/WebCompositorImpl.cpp

    r96529 r96557  
    9090WebCompositorImpl::~WebCompositorImpl()
    9191{
     92    if (m_client)
     93        m_client->willShutdown();
     94
    9295    ASSERT(s_compositorsLock);
    9396    MutexLocker lock(*s_compositorsLock);
     
    111114    ASSERT(CCProxy::isImplThread());
    112115    // FIXME: Do something interesting with the event here.
    113     m_client->didHandleInputEvent(false);
     116    m_client->didNotHandleInputEvent(true /* sendToWidget */);
    114117}
    115118
Note: See TracChangeset for help on using the changeset viewer.