Chromium Code Reviews
DescriptionFix cmd-up/cmd-down.
The approach is to special-case moveToBeginningOfDocument and moveToEndOfDocument in WebFrameImpl::executeCommand(). With this (and the cocoa keyboard bindings patch being landed), the special-case code in WebViewImpl::ScrollViewWithKeyboard() can be removed.
Also add a test for cmd-up/down.
Change chrome.gyp so that it supports osx-only unit tests (_unittest_mac.mm).
Move OnPrintPageAsBitmap to the other printing tests.
BUG=22585
TEST=Go to a page with both text box and scrollbar (e.g. http://en.wikipedia.org ). Pressing cmd-down should scroll to end of page, cmd-up back to start. Clicking the text box and trying some emacs shortcuts should work (ctrl-a jumps to start of line, cmd-h acts as backspace, etc).
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=27464
Patch Set 1 #Patch Set 2 : Add test. #Patch Set 3 : Set edit command in test, so that I actually test what I want to test. #Patch Set 4 : Stuff seems to work. #Patch Set 5 : Remove debug fprintf #Patch Set 6 : update comment #
Total comments: 4
Patch Set 7 : Address comments. #
Total comments: 2
Patch Set 8 : Fix typo found by suzhe #
Total comments: 14
Messages
Total messages: 9 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||