Changeset 96557 in webkit
- Timestamp:
- Oct 3, 2011 4:54:26 PM (13 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r96549 r96557 1 2011-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 1 13 2011-10-03 Anders Carlsson <andersca@apple.com> 2 14 -
trunk/Source/WebKit/chromium/public/WebCompositorClient.h
r96430 r96557 33 33 // Callbacks invoked from the compositor thread. 34 34 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; 36 44 37 45 protected: -
trunk/Source/WebKit/chromium/src/WebCompositorImpl.cpp
r96529 r96557 90 90 WebCompositorImpl::~WebCompositorImpl() 91 91 { 92 if (m_client) 93 m_client->willShutdown(); 94 92 95 ASSERT(s_compositorsLock); 93 96 MutexLocker lock(*s_compositorsLock); … … 111 114 ASSERT(CCProxy::isImplThread()); 112 115 // FIXME: Do something interesting with the event here. 113 m_client->did HandleInputEvent(false);116 m_client->didNotHandleInputEvent(true /* sendToWidget */); 114 117 } 115 118
Note: See TracChangeset
for help on using the changeset viewer.