Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Issue 338005: Find-in-page should not ding while deleting characters. (Closed)

Created:
11 years, 2 months ago by Finnur
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Find-in-page should not ding while deleting characters. BUG=18120 TEST=Open google.com, type Ctrl+F, type in garbage. Erase one letter at a time and there should be no beeping while you erase. Try it again, but this time use shift-delete to cut a few letters off the end. It should not ding. Now Copy the whole find string, press Esc, open Find again and on Paste it should not ding. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30092

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -3 lines) Patch
M chrome/browser/find_bar_controller.cc View 1 2 3 1 chunk +4 lines, -1 line 1 comment Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 3 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 2 chunks +4 lines, -0 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
Finnur
Easy one. And dear to your heart. :)
11 years, 2 months ago (2009-10-23 22:31:14 UTC) #1
Peter Kasting
LGTM http://codereview.chromium.org/338005/diff/3001/4001 File chrome/browser/find_bar_controller.cc (right): http://codereview.chromium.org/338005/diff/3001/4001#newcode126 Line 126: if (last_search.substr(0, last_search.length() - 1) != current_search) ...
11 years, 2 months ago (2009-10-23 22:40:58 UTC) #2
Finnur
Good point. Uploaded. On 2009/10/23 22:40:58, Peter Kasting wrote: > LGTM > > http://codereview.chromium.org/338005/diff/3001/4001 > ...
11 years, 2 months ago (2009-10-23 22:51:08 UTC) #3
Peter Kasting
http://codereview.chromium.org/338005/diff/5001/6001 File chrome/browser/find_bar_controller.cc (right): http://codereview.chromium.org/338005/diff/5001/6001#newcode127 Line 127: last_search.substr(0, current_search.length()) != current_search) Nit: An easier way ...
11 years, 2 months ago (2009-10-23 22:55:33 UTC) #4
Finnur
jshin: Over the weekend I started thinking about this patch some more, and got worried ...
11 years, 2 months ago (2009-10-25 02:33:52 UTC) #5
Peter Kasting
On 2009/10/25 02:33:52, Finnur wrote: > pkasting: I'm not sure what you mean by the ...
11 years, 1 month ago (2009-10-26 07:42:58 UTC) #6
jungshik at Google
On 2009/10/25 02:33:52, Finnur wrote: > jshin: Over the weekend I started thinking about this ...
11 years, 1 month ago (2009-10-26 19:55:38 UTC) #7
Finnur
Thanks to both of you. Peter, while testing this once more after making your suggested ...
11 years, 1 month ago (2009-10-26 21:01:05 UTC) #8
Peter Kasting
11 years, 1 month ago (2009-10-26 21:04:33 UTC) #9
LGTM

http://codereview.chromium.org/338005/diff/1006/2009
File chrome/browser/find_bar_controller.cc (right):

http://codereview.chromium.org/338005/diff/1006/2009#newcode126
Line 126: if (last_search.find(current_search) != 0)
Nit: If you want, you can inline those temps into here.

http://codereview.chromium.org/338005/diff/1006/2010
File chrome/browser/tab_contents/tab_contents.cc (right):

http://codereview.chromium.org/338005/diff/1006/2010#newcode1123
Line 1123: find_text_ = string16();
Nit: Use "find_text_.clear();"

Powered by Google App Engine
This is Rietveld 408576698