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

Issue 2642893002: Adjust positioning of location bar icons. (Closed)

Created:
3 years, 11 months ago by Evan Stade
Modified:
3 years, 11 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adjust positioning of location bar icons. See bug for new layout spec. Note that this affects not just the trailing icons but also the location icon ,which is now slightly closer to the left edge of the location bar. Test cases: - location icon, no text (such as an http:// site) - location icon w/text (such as an https:// site) - alignment of contents of omnibox popup, both icons and text, with contents of location bar - keyword hint view, i.e. text on right of location bar when typing a searchable keyword - selected keyword view, i.e. after pressing tab to search - content settings icon, e.g. blocked microphone on permission.site - content settings icon w/text, e.g. a blocked popup on popuptest.com - multiple location icons, like star view + zoom view - all of the above in touch mode (--top-chrome-md=material-hybrid) BUG=678510 Review-Url: https://codereview.chromium.org/2642893002 Cr-Commit-Position: refs/heads/master@{#446199} Committed: https://chromium.googlesource.com/chromium/src/+/39f5ad11373872bbb7e398fb7943b289cc790c39

Patch Set 1 #

Patch Set 2 : checkpoint #

Patch Set 3 : . #

Patch Set 4 : fix test #

Total comments: 6

Patch Set 5 : simplified #

Total comments: 5

Patch Set 6 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -70 lines) Patch
M chrome/browser/ui/layout_constants.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/layout_constants.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/bubble_icon_view.cc View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_image_view.cc View 1 2 3 4 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.h View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc View 1 2 3 4 5 6 chunks +27 lines, -36 lines 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view_unittest.cc View 1 2 3 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/keyword_hint_view.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 7 chunks +12 lines, -13 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_result_view.cc View 1 2 2 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 25 (17 generated)
Evan Stade
3 years, 11 months ago (2017-01-21 02:25:59 UTC) #10
Peter Kasting
LGTM https://codereview.chromium.org/2642893002/diff/60001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc File chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc (right): https://codereview.chromium.org/2642893002/diff/60001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode99 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:99: int image_x = 0; Doesn't this effectively make ...
3 years, 11 months ago (2017-01-24 21:26:40 UTC) #11
Evan Stade
https://codereview.chromium.org/2642893002/diff/60001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc File chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc (right): https://codereview.chromium.org/2642893002/diff/60001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode99 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:99: int image_x = 0; On 2017/01/24 21:26:39, Peter Kasting ...
3 years, 11 months ago (2017-01-25 00:37:49 UTC) #12
Peter Kasting
LGTM https://codereview.chromium.org/2642893002/diff/80001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc File chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc (right): https://codereview.chromium.org/2642893002/diff/80001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode107 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:107: if (ShouldShowLabel()) The comment above seems to imply ...
3 years, 11 months ago (2017-01-25 04:25:18 UTC) #17
Evan Stade
https://codereview.chromium.org/2642893002/diff/80001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc File chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc (right): https://codereview.chromium.org/2642893002/diff/80001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode107 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:107: if (ShouldShowLabel()) On 2017/01/25 04:25:18, Peter Kasting wrote: > ...
3 years, 11 months ago (2017-01-26 00:52:59 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2642893002/100001
3 years, 11 months ago (2017-01-26 00:54:18 UTC) #21
Peter Kasting
https://codereview.chromium.org/2642893002/diff/80001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc File chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc (right): https://codereview.chromium.org/2642893002/diff/80001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc#newcode107 chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:107: if (ShouldShowLabel()) On 2017/01/26 00:52:59, Evan Stade wrote: > ...
3 years, 11 months ago (2017-01-26 01:25:13 UTC) #22
commit-bot: I haz the power
3 years, 11 months ago (2017-01-26 01:45:56 UTC) #25
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/39f5ad11373872bbb7e398fb7943...

Powered by Google App Engine
This is Rietveld 408576698