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

Issue 10907038: alternate ntp: clip middle omnibox when resizing browser window (Closed)

Created:
8 years, 3 months ago by kuan
Modified:
8 years, 3 months ago
Reviewers:
sky, dhollowa
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

alternate ntp: clip middle omnibox when resizing browser window - when resizing browser window, middle omnibox wasn't clipped; it would float in the root window if the browser window is too small to contain it - fix to make LocationBarContainer clip its child LocationBarView - LocationBarContainer's bounds is resized to within its parent's, while LocationBarView's width fills it but height stays the same, allowing the former to clip the latter without resizing the latter BUG=145744 TEST=verify per bug rpt. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156675

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : re-implement fix #

Total comments: 4

Patch Set 4 : addressed scott's comments #

Patch Set 5 : addressed scott's comments #

Patch Set 6 : addressed scott's comments #

Total comments: 2

Patch Set 7 : addressed david's comments #

Total comments: 6

Patch Set 8 : addressed scott's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -4 lines) Patch
M chrome/browser/ui/views/location_bar/location_bar_container.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_container.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_container_aura.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
kuan
ptal at patch set 3. scott, fyi, browser window can't clip its children, else we ...
8 years, 3 months ago (2012-09-12 18:10:07 UTC) #1
sky
I don't understand this. Why do we need the LBC bounds to differ from that ...
8 years, 3 months ago (2012-09-12 21:07:31 UTC) #2
kuan
LBC is resized to within browser window. if LBV also has the same size, its ...
8 years, 3 months ago (2012-09-12 21:33:04 UTC) #3
sky
Can we always give LBV its preferred height then? On Wed, Sep 12, 2012 at ...
8 years, 3 months ago (2012-09-12 23:16:13 UTC) #4
kuan
scott, u're right! LBV can always retain its preferred height. the result is a much ...
8 years, 3 months ago (2012-09-13 18:05:16 UTC) #5
dhollowa
Thanks for the simplifications... LGTM w/ nit. http://codereview.chromium.org/10907038/diff/9003/chrome/browser/ui/views/toolbar_view.cc File chrome/browser/ui/views/toolbar_view.cc (right): http://codereview.chromium.org/10907038/diff/9003/chrome/browser/ui/views/toolbar_view.cc#newcode436 chrome/browser/ui/views/toolbar_view.cc:436: if (intersect_rect.IsEmpty()) ...
8 years, 3 months ago (2012-09-13 18:24:08 UTC) #6
kuan
i've addressed david's comments in patch set 6. ptal. thx. http://codereview.chromium.org/10907038/diff/9003/chrome/browser/ui/views/toolbar_view.cc File chrome/browser/ui/views/toolbar_view.cc (right): http://codereview.chromium.org/10907038/diff/9003/chrome/browser/ui/views/toolbar_view.cc#newcode436 ...
8 years, 3 months ago (2012-09-13 19:10:29 UTC) #7
sky
http://codereview.chromium.org/10907038/diff/11003/chrome/browser/ui/views/location_bar/location_bar_container.cc File chrome/browser/ui/views/location_bar/location_bar_container.cc (right): http://codereview.chromium.org/10907038/diff/11003/chrome/browser/ui/views/location_bar/location_bar_container.cc#newcode11 chrome/browser/ui/views/location_bar/location_bar_container.cc:11: #include "ui/views/layout/fill_layout.h" remove include http://codereview.chromium.org/10907038/diff/11003/chrome/browser/ui/views/location_bar/location_bar_container_aura.cc File chrome/browser/ui/views/location_bar/location_bar_container_aura.cc (right): http://codereview.chromium.org/10907038/diff/11003/chrome/browser/ui/views/location_bar/location_bar_container_aura.cc#newcode16 ...
8 years, 3 months ago (2012-09-13 19:58:23 UTC) #8
kuan
i've addressed all comments in patch set 8. ptal. thx. http://codereview.chromium.org/10907038/diff/11003/chrome/browser/ui/views/location_bar/location_bar_container.cc File chrome/browser/ui/views/location_bar/location_bar_container.cc (right): http://codereview.chromium.org/10907038/diff/11003/chrome/browser/ui/views/location_bar/location_bar_container.cc#newcode11 ...
8 years, 3 months ago (2012-09-13 20:13:28 UTC) #9
sky
LGTM
8 years, 3 months ago (2012-09-13 21:13:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kuan@chromium.org/10907038/20001
8 years, 3 months ago (2012-09-13 21:16:19 UTC) #11
commit-bot: I haz the power
8 years, 3 months ago (2012-09-13 23:37:29 UTC) #12
Change committed as 156675

Powered by Google App Engine
This is Rietveld 408576698