Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Issue 11369231: [Sanity Review] cc: Mark an event has not-handled if it didn't cause a scroll (Closed)

Created:
8 years, 1 month ago by sadrul
Modified:
8 years, 1 month ago
Reviewers:
danakj, rjkroege
Base URL:
git://git.webkit.org/WebKit.git@master
Visibility:
Public.

Description

cc: If an event did not actually do any scroll in scrollBy, then mark the event as not-handled. BUG=none

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M Source/Platform/chromium/public/WebInputHandlerClient.h View 1 chunk +1 line, -1 line 2 comments Download
M Source/WebKit/chromium/src/WebCompositorInputHandlerImpl.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M Source/WebKit/chromium/tests/WebCompositorInputHandlerImplTest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
sadrul
Webkit part of the change: http://codereview.chromium.org/11365238/
8 years, 1 month ago (2012-11-13 23:25:41 UTC) #1
danakj
http://codereview.chromium.org/11369231/diff/1/Source/Platform/chromium/public/WebInputHandlerClient.h File Source/Platform/chromium/public/WebInputHandlerClient.h (right): http://codereview.chromium.org/11369231/diff/1/Source/Platform/chromium/public/WebInputHandlerClient.h#newcode56 Source/Platform/chromium/public/WebInputHandlerClient.h:56: virtual bool scrollBy(WebPoint, WebSize) = 0; You should add ...
8 years, 1 month ago (2012-11-14 01:55:32 UTC) #2
rjkroege
On 2012/11/14 01:55:32, danakj wrote: > http://codereview.chromium.org/11369231/diff/1/Source/Platform/chromium/public/WebInputHandlerClient.h > File Source/Platform/chromium/public/WebInputHandlerClient.h (right): > > http://codereview.chromium.org/11369231/diff/1/Source/Platform/chromium/public/WebInputHandlerClient.h#newcode56 > ...
8 years, 1 month ago (2012-11-14 16:58:41 UTC) #3
rjkroege
8 years, 1 month ago (2012-11-14 17:00:26 UTC) #4
https://codereview.chromium.org/11369231/diff/1/Source/Platform/chromium/publ...
File Source/Platform/chromium/public/WebInputHandlerClient.h (right):

https://codereview.chromium.org/11369231/diff/1/Source/Platform/chromium/publ...
Source/Platform/chromium/public/WebInputHandlerClient.h:56: virtual bool
scrollBy(WebPoint, WebSize) = 0;
On 2012/11/14 01:55:32, danakj wrote:
> You should add a comment about the return value.
> 
> Is a bool always going to be enough? Should you maybe return the WebSize
> remaining of what was not scrolled (say you scroll to the bottom of the page
mid
> scroll?)
> 
> See similar code for the pageScaleViewport in layer_tree_host_impl for a
> precedent. That's why I thought of it.

And: it would be nice to use enums for these sorts of things because (at least
I) can't remember what processed means. :-)

Powered by Google App Engine
This is Rietveld 408576698