[chromium] Implement WebCompositorInputHandlerImpl on top of exposed API instead of CC internals
Created attachment 162890 [details] Patch
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Comment on attachment 162890 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=162890&action=review There's a lot of code change, but it seems pretty straightforward. > Source/WebKit/chromium/src/WebCompositorInputHandlerImpl.cpp:237 > + TRACE_EVENT_INSTANT0("cc", "WebCompositorInputHandlerImpl::bindToClient"); > + if (!s_compositors) > + s_compositors = new HashSet<WebCompositorInputHandlerImpl*>; > + s_compositors->add(this); Now that this doesn't happen on construction, do you want some check that bindToClient is only called once? > Source/WebKit/chromium/src/WebToCCInputHandlerAdapter.cpp:60 > + return static_cast<WebInputHandlerClient::ScrollStatus>(m_client->scrollBegin(point, static_cast<WebCore::CCInputHandlerClient::ScrollInputType>(type))); Can you add compile-time asserts that these enums are the same?
(In reply to comment #3) > (From update of attachment 162890 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=162890&action=review > > There's a lot of code change, but it seems pretty straightforward. > > > Source/WebKit/chromium/src/WebCompositorInputHandlerImpl.cpp:237 > > + TRACE_EVENT_INSTANT0("cc", "WebCompositorInputHandlerImpl::bindToClient"); > > + if (!s_compositors) > > + s_compositors = new HashSet<WebCompositorInputHandlerImpl*>; > > + s_compositors->add(this); > > Now that this doesn't happen on construction, do you want some check that bindToClient is only called once? Yeah, good idea. > > > Source/WebKit/chromium/src/WebToCCInputHandlerAdapter.cpp:60 > > + return static_cast<WebInputHandlerClient::ScrollStatus>(m_client->scrollBegin(point, static_cast<WebCore::CCInputHandlerClient::ScrollInputType>(type))); > > Can you add compile-time asserts that these enums are the same? Sure - just have to figure out how those macros work
Created attachment 162905 [details] checks bindToClient called once, asserts enums match, puts WCIHI in correct gyp section
Comment on attachment 162905 [details] checks bindToClient called once, asserts enums match, puts WCIHI in correct gyp section R=me.
Committed r127948: <http://trac.webkit.org/changeset/127948>