Changeset 96430 in webkit


Ignore:
Timestamp:
Sep 30, 2011 3:00:33 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] Pass a processed bool in WebCompositorClient::didHandleInputEvent to indicate if the event was processed
https://bugs.webkit.org/show_bug.cgi?id=69169

Patch by James Robinson <jamesr@chromium.org> on 2011-09-30
Reviewed by Darin Fisher.

If the compositor does not process the input event the embedder might want to do something with it - for
example, if the input event type is part of a CTRL+T keyboard accelerator sequence the browser might want to
open a new tab. This passes that state through the didHandleInputEvent callback.

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

(WebKit::WebCompositorImpl::handleInputEvent):

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

Legend:

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

    r96412 r96430  
     12011-09-30  James Robinson  <jamesr@chromium.org>
     2
     3        [chromium] Pass a processed bool in WebCompositorClient::didHandleInputEvent to indicate if the event was processed
     4        https://bugs.webkit.org/show_bug.cgi?id=69169
     5
     6        Reviewed by Darin Fisher.
     7
     8        If the compositor does not process the input event the embedder might want to do something with it - for
     9        example, if the input event type is part of a CTRL+T keyboard accelerator sequence the browser might want to
     10        open a new tab. This passes that state through the didHandleInputEvent callback.
     11
     12        * public/WebCompositorClient.h:
     13        * src/WebCompositorImpl.cpp:
     14        (WebKit::WebCompositorImpl::handleInputEvent):
     15
    1162011-09-30  Elliot Poger  <epoger@google.com>
    217
  • trunk/Source/WebKit/chromium/public/WebCompositorClient.h

    r96392 r96430  
    3333    // Callbacks invoked from the compositor thread.
    3434    virtual void willShutdown() = 0;
    35     virtual void didHandleInputEvent() = 0;
     35    virtual void didHandleInputEvent(bool processed) = 0;
    3636
    3737protected:
  • trunk/Source/WebKit/chromium/src/WebCompositorImpl.cpp

    r96392 r96430  
    6161{
    6262    // FIXME: Do something interesting with the event here.
    63     m_client->didHandleInputEvent();
     63    m_client->didHandleInputEvent(false);
    6464}
    6565
Note: See TracChangeset for help on using the changeset viewer.