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

Issue 1581011: [Mac] Magnifying glass in keyword-search bubble. (Closed)

Created:
10 years, 8 months ago by Scott Hess - ex-Googler
Modified:
9 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

[Mac] Magnifying glass in keyword-search bubble. Abstract the image-in-attributed-string code into a helper function so everyone makes the same mistakes. The keyword-search string's baseline became wrong at some point, adjust it to match the rest of the field. BUG=37865 TEST=Type "google.com" until "press tab to search" appears, hit TAB. "Search Google:" bubble should have a magnifying glass on the LHS. TEST=Add a bunch of text to search. Resizing smaller should first remove the image, then change to shorter text ("Search Go..." or somesuch). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43540

Patch Set 1 #

Total comments: 2

Patch Set 2 : Present for Rohit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -23 lines) Patch
M chrome/browser/cocoa/autocomplete_text_field_cell.mm View 6 chunks +55 lines, -20 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_cell_unittest.mm View 1 1 chunk +12 lines, -1 line 0 comments Download
M chrome/browser/cocoa/location_bar_view_mac_unittest.mm View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Scott Hess - ex-Googler
10 years, 8 months ago (2010-04-02 17:50:53 UTC) #1
rohitrao (ping after 24h)
LGTM http://codereview.chromium.org/1581011/diff/1/3 File chrome/browser/cocoa/autocomplete_text_field_cell_unittest.mm (right): http://codereview.chromium.org/1581011/diff/1/3#newcode451 chrome/browser/cocoa/autocomplete_text_field_cell_unittest.mm:451: EXPECT_TRUE([[[cell keywordString] string] hasSuffix:kFullString]); Is there a reasonable ...
10 years, 8 months ago (2010-04-02 21:40:25 UTC) #2
Scott Hess - ex-Googler
10 years, 8 months ago (2010-04-02 22:41:02 UTC) #3
Thanks!

http://codereview.chromium.org/1581011/diff/1/3
File chrome/browser/cocoa/autocomplete_text_field_cell_unittest.mm (right):

http://codereview.chromium.org/1581011/diff/1/3#newcode451
chrome/browser/cocoa/autocomplete_text_field_cell_unittest.mm:451:
EXPECT_TRUE([[[cell keywordString] string] hasSuffix:kFullString]);
On 2010/04/02 21:40:25, rohitrao wrote:
> Is there a reasonable way to test for the presence of the image?  Should we
have
> tests for fullwidth+image vs fullwidth+noimage?

Modified the test to test that there is an attachment in this case, then to snag
the laid-out width from this case, subtract a little, then check that that width
doesn't allow an image.  Seems reasonable to me.

Powered by Google App Engine
This is Rietveld 408576698