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

Issue 12042002: Alternate NTP: Add search token to omnibox (Closed)

Created:
7 years, 11 months ago by sail
Modified:
7 years, 10 months ago
CC:
chromium-reviews, sail+watch_chromium.org
Visibility:
Public.

Description

Alternate NTP: Add search token to omnibox This is the Mac verison of this Views CL: https://chromiumcodereview.appspot.com/11418229/ This CL adds a search token decoration to the omnibox. The search token is displayed when the user does a search from the omnibox. The search token appears on the right with a separtor between it and other decorations. Screenshot: no separator: http://i.imgur.com/TXCixtn.png with separator 1x: http://imgur.com/xtxv9hG with separator 2x: http://imgur.com/2Pzi7dN BUG=163190 TBR=thakis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179818

Patch Set 1 #

Patch Set 2 : add comments #

Patch Set 3 : add tests #

Total comments: 18

Patch Set 4 : address review comments #

Total comments: 22

Patch Set 5 : address review comments #

Total comments: 6

Patch Set 6 : " #

Total comments: 8

Patch Set 7 : update separator color #

Total comments: 14

Patch Set 8 : address review comments #

Total comments: 8

Patch Set 9 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+628 lines, -112 lines) Patch
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm View 1 2 3 4 5 6 7 8 16 chunks +71 lines, -40 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm View 1 2 3 4 5 6 7 8 7 chunks +87 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest.mm View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/bubble_decoration.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm View 1 2 3 4 4 chunks +3 lines, -10 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/button_decoration.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/button_decoration.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/content_setting_decoration.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.mm View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration_unittest.mm View 1 2 3 4 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/image_decoration.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/image_decoration.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/image_decoration_unittest.mm View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/keyword_hint_decoration.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/keyword_hint_decoration.mm View 1 2 3 4 4 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/keyword_hint_decoration_unittest.mm View 1 2 3 4 1 chunk +9 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm View 1 2 3 4 5 6 7 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h View 1 2 3 4 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 1 2 3 4 5 6 7 8 6 chunks +34 lines, -2 lines 0 comments Download
A chrome/browser/ui/cocoa/location_bar/location_bar_view_mac_browsertest.mm View 1 2 3 4 5 6 7 1 chunk +111 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/page_action_decoration.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
A chrome/browser/ui/cocoa/location_bar/search_token_decoration.h View 1 2 3 4 5 6 7 8 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/location_bar/search_token_decoration.mm View 1 2 3 4 5 6 7 8 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/location_bar/search_token_decoration_unittest.mm View 1 2 3 4 5 6 7 8 1 chunk +46 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration.mm View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration_unittest.mm View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
A chrome/browser/ui/cocoa/location_bar/separator_decoration.h View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/location_bar/separator_decoration.mm View 1 2 3 4 5 6 7 8 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/location_bar/separator_decoration_unittest.mm View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration.mm View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
sail
Still needs tests but sending this out early to get feedback.
7 years, 11 months ago (2013-01-21 03:04:30 UTC) #1
sail
added tests
7 years, 11 months ago (2013-01-21 12:51:37 UTC) #2
kuan
https://codereview.chromium.org/12042002/diff/5001/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h File chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h (right): https://codereview.chromium.org/12042002/diff/5001/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h#newcode30 chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h:30: class LocationBarViewMacBrowserTest; nit: wrong alphabetical order https://codereview.chromium.org/12042002/diff/5001/chrome/browser/ui/cocoa/location_bar/search_token_decoration.mm File chrome/browser/ui/cocoa/location_bar/search_token_decoration.mm ...
7 years, 11 months ago (2013-01-23 17:01:32 UTC) #3
kuan
https://codereview.chromium.org/12042002/diff/5001/chrome/browser/ui/cocoa/location_bar/separator_decoration.mm File chrome/browser/ui/cocoa/location_bar/separator_decoration.mm (right): https://codereview.chromium.org/12042002/diff/5001/chrome/browser/ui/cocoa/location_bar/separator_decoration.mm#newcode27 chrome/browser/ui/cocoa/location_bar/separator_decoration.mm:27: return 6; On 2013/01/23 17:01:32, kuan wrote: > is ...
7 years, 11 months ago (2013-01-23 17:02:42 UTC) #4
sail
kuan: Added ability to hide the search token if it overlaps the omnibox text. Please ...
7 years, 11 months ago (2013-01-27 21:11:07 UTC) #5
kuan
thanks for addressing the comments and the screenshots. lgtm, if cole approves the screenshots. https://codereview.chromium.org/12042002/diff/12001/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h ...
7 years, 10 months ago (2013-01-28 18:02:00 UTC) #6
Scott Hess - ex-Googler
https://codereview.chromium.org/12042002/diff/12001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm (right): https://codereview.chromium.org/12042002/diff/12001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm#newcode111 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm:111: // Collapse if necessary. Way Back When, I thought ...
7 years, 10 months ago (2013-01-28 21:37:27 UTC) #7
sail
Addressed comments. Please take another look. https://codereview.chromium.org/12042002/diff/12001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm (right): https://codereview.chromium.org/12042002/diff/12001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm#newcode111 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm:111: // Collapse if ...
7 years, 10 months ago (2013-01-29 22:31:08 UTC) #8
sail
https://codereview.chromium.org/12042002/diff/12001/chrome/browser/ui/cocoa/location_bar/separator_decoration.mm File chrome/browser/ui/cocoa/location_bar/separator_decoration.mm (right): https://codereview.chromium.org/12042002/diff/12001/chrome/browser/ui/cocoa/location_bar/separator_decoration.mm#newcode21 chrome/browser/ui/cocoa/location_bar/separator_decoration.mm:21: [SeparatorColor(control_view) set]; On 2013/01/29 22:31:08, sail wrote: > On ...
7 years, 10 months ago (2013-01-29 22:48:28 UTC) #9
sail
On 2013/01/28 18:02:00, kuan wrote: > thanks for addressing the comments and the screenshots. lgtm, ...
7 years, 10 months ago (2013-01-29 23:09:50 UTC) #10
Scott Hess - ex-Googler
Thanks for bearing with me. Takes effort to swap all this back into brain. https://codereview.chromium.org/12042002/diff/12001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm ...
7 years, 10 months ago (2013-01-29 23:28:36 UTC) #11
sail
https://codereview.chromium.org/12042002/diff/18002/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h File chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h (right): https://codereview.chromium.org/12042002/diff/18002/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h#newcode39 chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h:39: // the omnibox text. On 2013/01/29 23:28:36, shess wrote: ...
7 years, 10 months ago (2013-01-30 01:40:55 UTC) #12
Scott Hess - ex-Googler
LGTM, minor nits. Ignore them all if you hate freedom. https://codereview.chromium.org/12042002/diff/23004/chrome/browser/ui/cocoa/location_bar/separator_decoration.mm File chrome/browser/ui/cocoa/location_bar/separator_decoration.mm (right): https://codereview.chromium.org/12042002/diff/23004/chrome/browser/ui/cocoa/location_bar/separator_decoration.mm#newcode36 ...
7 years, 10 months ago (2013-01-30 23:48:42 UTC) #13
sail
https://codereview.chromium.org/12042002/diff/23004/chrome/browser/ui/cocoa/location_bar/separator_decoration.mm File chrome/browser/ui/cocoa/location_bar/separator_decoration.mm (right): https://codereview.chromium.org/12042002/diff/23004/chrome/browser/ui/cocoa/location_bar/separator_decoration.mm#newcode36 chrome/browser/ui/cocoa/location_bar/separator_decoration.mm:36: return [[NSColor lightGrayColor] colorWithAlphaComponent:0.25 / lineWidth]; On 2013/01/30 23:48:42, ...
7 years, 10 months ago (2013-01-31 03:08:00 UTC) #14
sail
TBR thakis for chrome/*.gyp* changes.
7 years, 10 months ago (2013-01-31 03:10:07 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/12042002/19031
7 years, 10 months ago (2013-01-31 03:13:13 UTC) #16
commit-bot: I haz the power
Change committed as 179818
7 years, 10 months ago (2013-01-31 07:55:57 UTC) #17
Nico
Please do not TBR cls against me without putting me on the review. TBR means ...
7 years, 10 months ago (2013-02-01 17:50:29 UTC) #18
sail
7 years, 10 months ago (2013-02-01 17:53:23 UTC) #19
Message was sent while issue was closed.
On 2013/02/01 17:50:29, Nico wrote:
> Please do not TBR cls against me without putting me on the review. TBR means
"to
> be reviewed", not "submitted without review".

Oops. After adding the TBR to the CL description I made sure to hit "Publish"
but then I forgot to add to the reviewer's list. Sorry!

Powered by Google App Engine
This is Rietveld 408576698