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

Issue 1011943002: Mac: Clicking an omnibox decoration should not highlight the omnibox. (Closed)

Created:
5 years, 9 months ago by erikchen
Modified:
5 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Clicking an omnibox decoration should not highlight the omnibox. Prior to this CL, the AutocompleteTextField becomes first responder if the user left-clicks a decoration. This is a bug that this CL fixes. This also fixes a bug where ZeroSuggest did not disappear when the user drags the origin chip. BUG=356887 Committed: https://crrev.com/9b14239654a3600c2a56dc214d277f63d7eb12cc Cr-Commit-Position: refs/heads/master@{#329781}

Patch Set 1 #

Patch Set 2 : Fix unit test. #

Total comments: 11

Patch Set 3 : Comments from shess. #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 12

Patch Set 6 : Comments from shess. #

Total comments: 4

Patch Set 7 : Comments from shess, round three. #

Total comments: 1

Patch Set 8 : Revert a change to the unit test AutocompleteTextFieldTest.LeftDecorationMouseDown. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -64 lines) Patch
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm View 1 2 3 4 5 6 7 3 chunks +68 lines, -64 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
erikchen
shess: Please review. https://codereview.chromium.org/1011943002/diff/20001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm (left): https://codereview.chromium.org/1011943002/diff/20001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm#oldcode796 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm:796: TEST_F(AutocompleteTextFieldObserverTest, ButtonDecorationFocus) { This test was ...
5 years, 7 months ago (2015-05-07 19:33:51 UTC) #2
Scott Hess - ex-Googler
LGTM, with random nits which may-or-may-not be relevant any longer. LocationBarDecoration::AcceptsMousePress() implies that there exist ...
5 years, 7 months ago (2015-05-07 20:07:43 UTC) #4
Scott Hess - ex-Googler
Hmm, another thing that I've never gotten the rage to resolve is handling clicks "between" ...
5 years, 7 months ago (2015-05-07 20:11:41 UTC) #5
erikchen
On 2015/05/07 20:11:41, Scott Hess wrote: > Hmm, another thing that I've never gotten the ...
5 years, 7 months ago (2015-05-08 01:51:39 UTC) #6
erikchen
shess: PTAL https://codereview.chromium.org/1011943002/diff/20001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm (left): https://codereview.chromium.org/1011943002/diff/20001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm#oldcode796 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm:796: TEST_F(AutocompleteTextFieldObserverTest, ButtonDecorationFocus) { On 2015/05/07 20:07:42, Scott ...
5 years, 7 months ago (2015-05-08 01:51:46 UTC) #7
Scott Hess - ex-Googler
https://codereview.chromium.org/1011943002/diff/20001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm (right): https://codereview.chromium.org/1011943002/diff/20001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm#newcode838 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm:838: inFrame:[field_ bounds]])); On 2015/05/08 01:51:46, erikchen wrote: > On ...
5 years, 7 months ago (2015-05-08 19:38:29 UTC) #8
erikchen
shess: PTAL https://codereview.chromium.org/1011943002/diff/20001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm (right): https://codereview.chromium.org/1011943002/diff/20001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm#newcode838 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm:838: inFrame:[field_ bounds]])); On 2015/05/08 19:38:28, Scott Hess ...
5 years, 7 months ago (2015-05-08 20:02:21 UTC) #9
Scott Hess - ex-Googler
https://codereview.chromium.org/1011943002/diff/80001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm (right): https://codereview.chromium.org/1011943002/diff/80001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm#newcode155 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm:155: // first responder. On 2015/05/08 20:02:20, erikchen wrote: > ...
5 years, 7 months ago (2015-05-08 20:34:29 UTC) #10
erikchen
shess: PTAL https://codereview.chromium.org/1011943002/diff/80001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm (right): https://codereview.chromium.org/1011943002/diff/80001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm#newcode155 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm:155: // first responder. On 2015/05/08 20:34:28, Scott ...
5 years, 7 months ago (2015-05-09 01:09:38 UTC) #13
Scott Hess - ex-Googler
thanks, lgtm. https://codereview.chromium.org/1011943002/diff/150001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm (right): https://codereview.chromium.org/1011943002/diff/150001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm#newcode835 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm:835: NSResponder* firstResponder = [[field_ window] firstResponder]; This ...
5 years, 7 months ago (2015-05-11 22:40:43 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1011943002/150001
5 years, 7 months ago (2015-05-11 22:56:44 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/64859)
5 years, 7 months ago (2015-05-12 02:09:17 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1011943002/170001
5 years, 7 months ago (2015-05-14 01:07:54 UTC) #21
commit-bot: I haz the power
Committed patchset #8 (id:170001)
5 years, 7 months ago (2015-05-14 01:49:37 UTC) #22
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 01:51:03 UTC) #23
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/9b14239654a3600c2a56dc214d277f63d7eb12cc
Cr-Commit-Position: refs/heads/master@{#329781}

Powered by Google App Engine
This is Rietveld 408576698