Chromium Code Reviews
DescriptionMove arrow scrolling into KeyboardEventManager.
This moves the default arrow/pageup/home/end handler (resulting in a smooth scroll
animation) next to all the other keyboard default handlers. Notes:
- The spacebar scrolling and Ctrl-C/A codepaths in WebViewImpl were dead code
and have likely been for years. These keys were already handled by WebCore
before reaching WebViewImpl::keyEventDefault. So I simply deleted them.
- One calendar layout test was timing out on Mac, relating to how
Alt-Down is also a shortcut for opening the calendar month flyout. I couldn't
repro any problem manually, and it only happens in a racy close-flyout-then-reopen
scenario which seems like an artifact of test structure more than an intended
test case, so I just merged the two parts of the test.
BUG=657158
Committed: https://crrev.com/3f0b7ec4a4573fff9623546c348ee8fa9353d38c
Cr-Commit-Position: refs/heads/master@{#427925}
Patch Set 1 #Patch Set 2 : Use m_scrollManager directly #Patch Set 3 : Rebase #Patch Set 4 : Hacks to debug mac trybot #Patch Set 5 : More logging #Patch Set 6 : Try more deletions on trybot #Patch Set 7 : Clean up and add WebViewTest #Patch Set 8 : Rebase #Patch Set 9 : Add more test cases #Patch Set 10 : Fix test a different way #Patch Set 11 : Spacing nit #
Total comments: 4
Patch Set 12 : FocusDirection change #Patch Set 13 : Add keyEvent() null check to fix test #Messages
Total messages: 59 (50 generated)
|