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

Issue 335012: Update the find result index "(m of n)" whenever there is an active selection... (Closed)

Created:
11 years, 2 months ago by John Gregg
Modified:
9 years ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, jam
Visibility:
Public.

Description

Update the find result index "(m of n)" whenever there is an active selection on a find next. BUG=20883 TEST=included Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31234

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Patch Set 4 : 80 cols #

Total comments: 9

Patch Set 5 : simplify test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -4 lines) Patch
M chrome/browser/views/find_bar_host_browsertest.cc View 3 4 2 chunks +39 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download
A chrome/test/data/find_in_page/select_changes_ordinal.html View 3 4 1 chunk +23 lines, -0 lines 0 comments Download
M webkit/api/src/WebFrameImpl.cpp View 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
John Gregg
11 years, 2 months ago (2009-10-23 20:15:37 UTC) #1
darin (slow to review)
You should get Finnur to review this. Also, can you please write a test? I ...
11 years, 2 months ago (2009-10-23 20:47:23 UTC) #2
John Gregg
I updated this patch to the refactoring of WebFrame into webkit/api. I also searched for ...
11 years, 1 month ago (2009-11-04 23:47:35 UTC) #3
Finnur
I'll take a look. In the meantime, take a look at a test called FindInPageControllerTest.FindInPageEndState, ...
11 years, 1 month ago (2009-11-05 00:18:27 UTC) #4
Finnur
I like where this is heading. I have only one minor nit. Please update the ...
11 years, 1 month ago (2009-11-05 00:38:23 UTC) #5
Finnur
Oh, also... Can you (if you use gcl) run... gcl try your_patch_name --bot linux ...
11 years, 1 month ago (2009-11-05 00:40:31 UTC) #6
John Gregg
Thanks for the pointer to the test! I added one to cover this issue and ...
11 years, 1 month ago (2009-11-05 18:36:41 UTC) #7
Finnur
Thanks for adding the test. This is great. I have mostly just nits, and then ...
11 years, 1 month ago (2009-11-05 19:05:36 UTC) #8
John Gregg
On 2009/11/05 19:05:36, Finnur wrote: > Thanks for adding the test. This is great. > ...
11 years, 1 month ago (2009-11-05 19:18:30 UTC) #9
Finnur
For the endstate test, it is critical that the focus be on the link. For ...
11 years, 1 month ago (2009-11-05 19:23:33 UTC) #10
John Gregg
I see; I removed all the focus stuff and it looks fine. Uploaded new CL ...
11 years, 1 month ago (2009-11-05 20:48:28 UTC) #11
Finnur
11 years, 1 month ago (2009-11-05 21:11:31 UTC) #12
LGTM, with one caveat. 

I keep forgetting to mention this... Can you test this on a page with multiple
frames (ie. src/chrome/test/data/find_in_page/frames.html). I don't think you'll
have problems, but it would be good to make sure.

If that works fine, you are good to go.

Powered by Google App Engine
This is Rietveld 408576698