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

Issue 13976011: Revert FindBarView::SearchTextfieldView deletion. (Closed)

Created:
7 years, 8 months ago by msw
Modified:
7 years, 8 months ago
CC:
chromium-reviews, tfarina, ben+watch_chromium.org
Visibility:
Public.

Description

Revert FindBarView::SearchTextfieldView deletion. My http://crrev.com/192493 caused a regression: FindBarView doesn't select-all on tab-switch focus restoration. Restore the FindBarView::SearchTextfieldView class with RestoreFocus override. ( this restores the previous select-all behavior to fix the regression ) BUG=232290 TEST=Switching back to a tab that had the find bar focused (from a tab that didn't have the find bar focused) restores find bar focus and selects the entire text content. R=finnur@chromium.org TBR=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194630

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -3 lines) Patch
M chrome/browser/ui/views/find_bar_view.h View 1 chunk +14 lines, -1 line 0 comments Download
M chrome/browser/ui/views/find_bar_view.cc View 2 chunks +12 lines, -1 line 2 comments Download
M ui/views/view.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
msw
Hey Finnur and Ben, please take a look; thanks! I'd re-enable FindInPageTest.FocusRestoreOnTabSwitch, but I wasn't ...
7 years, 8 months ago (2013-04-17 07:52:23 UTC) #1
Finnur
LGTM. On 2013/04/17 07:52:23, msw wrote: > Hey Finnur and Ben, please take a look; ...
7 years, 8 months ago (2013-04-17 09:54:26 UTC) #2
msw
TBR'ing Ben and landing; thanks!
7 years, 8 months ago (2013-04-17 17:51:28 UTC) #3
msw
Committed patchset #1 manually as r194630 (presubmit successful).
7 years, 8 months ago (2013-04-17 18:00:58 UTC) #4
Ben Goodger (Google)
https://codereview.chromium.org/13976011/diff/1/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/13976011/diff/1/chrome/browser/ui/views/find_bar_view.cc#newcode505 chrome/browser/ui/views/find_bar_view.cc:505: void FindBarView::SearchTextfieldView::RequestFocus() { Can you do this in an ...
7 years, 8 months ago (2013-04-18 17:51:13 UTC) #5
msw
7 years, 8 months ago (2013-04-18 19:10:24 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/13976011/diff/1/chrome/browser/ui/views/find_...
File chrome/browser/ui/views/find_bar_view.cc (right):

https://codereview.chromium.org/13976011/diff/1/chrome/browser/ui/views/find_...
chrome/browser/ui/views/find_bar_view.cc:505: void
FindBarView::SearchTextfieldView::RequestFocus() {
On 2013/04/18 17:51:13, Ben Goodger (Google) wrote:
> Can you do this in an OnFocus() handler? It'd be nice if RequestFocus didn't
> have to be virtual.

Done in https://codereview.chromium.org/13852009/

Powered by Google App Engine
This is Rietveld 408576698