Chromium Code Reviews
DescriptionLet cmd-f/cmd-g use the findboard.
In a nutshell, this means that the find bars honor the global find pasteboard, which is like a clipboard, but for searches. See the TEST section below for consequences, and also see the bug for more information.
BUG=14562
TEST=
* Select some text, hit cmd-e, cmd-g. This should search for the marked text and open the find bar if it's not open.
* Open TextEdit, hit cmd-f. Enter some text, hit enter. Switch back to Chrome with an open find bar. The find bar should now contain the text you entered in TextEdit
* Enter different text into chrome's find bar, switch back to TextEdit. Its find window should now contain the new text.
* Search for something in one tab, switch to another tab. It should contain the same text in the findbar as the first one.
* Open the findbar, select some text, hit cmd-e. The find bar should be updated with the selected text and this text should be highlighted in the web page. Find bars in other tabs should be updated with that text as well.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=27015
Patch Set 1 #Patch Set 2 : Add TODOs. #Patch Set 3 : cmd-e followed by cmd-g kinda works #Patch Set 4 : cmd-e now updates the text in the findbar #Patch Set 5 : update findbars on app activate, add user metrics #Patch Set 6 : do not have per-tab search state #Patch Set 7 : fix unit test compile #
Total comments: 21
Patch Set 8 : address comments #Patch Set 9 : Address comments #Patch Set 10 : Revert useless change #Patch Set 11 : Merge ToT, update comments #Patch Set 12 : Add newline to find_pasteboard.mm #
Total comments: 4
Patch Set 13 : Address comments #
Total comments: 10
Patch Set 14 : Address comments #Patch Set 15 : Address irc comments: different mocking technique #Patch Set 16 : foo #Messages
Total messages: 17 (0 generated)
|