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

Issue 13852009: Replace find bar RequestFocus override with OnFocus. (Closed)

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

Description

Replace find bar RequestFocus override with OnFocus. Make View::RequestFocus non-virtual; replace override. Also add mouse-press/release inhibiting of select-all. (this prevents a flash of all text selected on click) BUG=232290 TEST=No find bar focus-related behavior/appearance regressions; 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; clicking the find bar doesn't flash all the text selected before placing the cursor or starting a drag. R=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195028

Patch Set 1 #

Patch Set 2 : Minor cleanup. #

Total comments: 2

Patch Set 3 : Add a comment about select_all_on_focus_. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -9 lines) Patch
M chrome/browser/ui/views/find_bar_view.h View 1 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/find_bar_view.cc View 1 2 1 chunk +20 lines, -6 lines 0 comments Download
M ui/views/view.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
msw
Hey Ben, please take a look; thanks!
7 years, 8 months ago (2013-04-18 19:16:11 UTC) #1
Ben Goodger (Google)
https://codereview.chromium.org/13852009/diff/4001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/13852009/diff/4001/chrome/browser/ui/views/find_bar_view.cc#newcode508 chrome/browser/ui/views/find_bar_view.cc:508: select_all_on_focus_ = false; can you explain in more detail ...
7 years, 8 months ago (2013-04-18 19:38:51 UTC) #2
msw
Please take another look; thanks! https://codereview.chromium.org/13852009/diff/4001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/13852009/diff/4001/chrome/browser/ui/views/find_bar_view.cc#newcode508 chrome/browser/ui/views/find_bar_view.cc:508: select_all_on_focus_ = false; On ...
7 years, 8 months ago (2013-04-18 20:07:25 UTC) #3
Ben Goodger (Google)
your cl is busted
7 years, 8 months ago (2013-04-18 20:16:01 UTC) #4
msw
On 2013/04/18 20:16:01, Ben Goodger (Google) wrote: > your cl is busted Sorry :( What's ...
7 years, 8 months ago (2013-04-18 20:24:10 UTC) #5
msw
On 2013/04/18 20:24:10, msw wrote: > On 2013/04/18 20:16:01, Ben Goodger (Google) wrote: > > ...
7 years, 8 months ago (2013-04-18 20:26:02 UTC) #6
Ben Goodger (Google)
lgtm
7 years, 8 months ago (2013-04-18 20:36:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/13852009/19001
7 years, 8 months ago (2013-04-18 20:42:01 UTC) #8
commit-bot: I haz the power
7 years, 8 months ago (2013-04-19 00:48:21 UTC) #9
Message was sent while issue was closed.
Change committed as 195028

Powered by Google App Engine
This is Rietveld 408576698