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

Issue 271013002: Compute minimum widths for the toolbar components. (Closed)

Created:
6 years, 7 months ago by Peter Kasting
Modified:
6 years, 7 months ago
Reviewers:
Greg Billock
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Compute minimum widths for the toolbar components. This includes the toolbar itself, the browser actions area, the location bar, and location bar components like the EV bubble view. The omnibox itself (i.e. the editable control) is given a minimum width of 150 px (which matches the EV bubble min width). * Also fixes a bug where the EV bubble was not allowed to shrink as intended. * Also fixes a bug where the toolbar requested 3px too much size by default when the "toolbar origin chip" was enabled. BUG=58915 TEST=Try to shrink the browser width, make sure the omnibox never gets "too narrow" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271409

Patch Set 1 #

Total comments: 28

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -203 lines) Patch
M chrome/browser/ui/views/location_bar/ev_bubble_view.h View 1 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/ev_bubble_view.cc View 1 3 chunks +16 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 11 chunks +81 lines, -34 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.h View 1 3 chunks +11 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 4 15 chunks +97 lines, -109 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.cc View 1 2 chunks +12 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 1 2 chunks +44 lines, -28 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Peter Kasting
This is not yet landable. I have not yet written an origin chip "minimum width" ...
6 years, 7 months ago (2014-05-09 03:01:04 UTC) #1
Greg Billock
https://codereview.chromium.org/271013002/diff/1/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/271013002/diff/1/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode111 chrome/browser/ui/views/location_bar/location_bar_view.cc:111: const int kSearchButtonInset = 1; Would it make sense ...
6 years, 7 months ago (2014-05-12 23:09:44 UTC) #2
Peter Kasting
New patch set up. This still doesn't address origin chip min width. It: (1) Responds ...
6 years, 7 months ago (2014-05-13 00:55:33 UTC) #3
Greg Billock
https://codereview.chromium.org/271013002/diff/1/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/271013002/diff/1/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode726 chrome/browser/ui/views/location_bar/location_bar_view.cc:726: GetToolbarModel()->GetEVCertName()).width(); On 2014/05/13 00:55:33, Peter Kasting wrote: > On ...
6 years, 7 months ago (2014-05-13 16:08:15 UTC) #4
Peter Kasting
Just responding to your feedback, still haven't implemented origin chip min width. https://codereview.chromium.org/271013002/diff/1/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc ...
6 years, 7 months ago (2014-05-13 20:50:14 UTC) #5
Greg Billock
On 2014/05/13 20:50:14, Peter Kasting wrote: > Just responding to your feedback, still haven't implemented ...
6 years, 7 months ago (2014-05-13 21:39:07 UTC) #6
Peter Kasting
Actually, Greg, how about I land this much first? I commented-out the origin chip min ...
6 years, 7 months ago (2014-05-17 01:34:03 UTC) #7
Greg Billock
On 2014/05/17 01:34:03, Peter Kasting wrote: > Actually, Greg, how about I land this much ...
6 years, 7 months ago (2014-05-19 15:11:06 UTC) #8
Peter Kasting
The CQ bit was checked by pkasting@chromium.org
6 years, 7 months ago (2014-05-19 15:12:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkasting@chromium.org/271013002/80001
6 years, 7 months ago (2014-05-19 15:13:06 UTC) #10
commit-bot: I haz the power
6 years, 7 months ago (2014-05-19 17:11:26 UTC) #11
Message was sent while issue was closed.
Change committed as 271409

Powered by Google App Engine
This is Rietveld 408576698