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

Issue 1800373002: [MD] replace infobar bottom solid line separator with a shadow. (Closed)

Created:
4 years, 9 months ago by Evan Stade
Modified:
4 years, 9 months ago
Reviewers:
Peter Kasting, sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MD] replace infobar bottom solid line separator with a shadow. The solid line separator is retained for both the top and between infobars. Now both the bottom and the top have pieces that overlap the rest of the browser. On the top, it's the arrow, and on the bottom, it's the shadow. This changes the layout of InfoBarContainerView such that it's always sized with zero overlap. This simplifies layout in the browser view and is now possible because layers allow child views to draw outside their bounds. This also makes event hit testing simpler (no need to override the event targeter for the container). BUG=520266 Committed: https://crrev.com/ed6800f22cb908b03fa72d876296a87e1e747b48 Cr-Commit-Position: refs/heads/master@{#381582}

Patch Set 1 #

Total comments: 2

Patch Set 2 : self review #

Total comments: 16

Patch Set 3 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -38 lines) Patch
M chrome/browser/ui/views/frame/browser_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.cc View 1 chunk +4 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_container_view.h View 1 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_container_view.cc View 1 2 4 chunks +79 lines, -13 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/gfx/skia_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/view.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/views/view.cc View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
Evan Stade
+pkasting for review +sky for (minor) changes to ui/ https://codereview.chromium.org/1800373002/diff/1/ui/gfx/skia_util.cc File ui/gfx/skia_util.cc (left): https://codereview.chromium.org/1800373002/diff/1/ui/gfx/skia_util.cc#oldcode133 ui/gfx/skia_util.cc:133: ...
4 years, 9 months ago (2016-03-16 00:54:01 UTC) #3
Peter Kasting
LGTM https://codereview.chromium.org/1800373002/diff/20001/chrome/browser/ui/views/infobars/infobar_container_view.cc File chrome/browser/ui/views/infobars/infobar_container_view.cc (right): https://codereview.chromium.org/1800373002/diff/20001/chrome/browser/ui/views/infobars/infobar_container_view.cc#newcode29 chrome/browser/ui/views/infobars/infobar_container_view.cc:29: ContentShadow() { Nit: I tend to find out-of-line ...
4 years, 9 months ago (2016-03-16 03:10:27 UTC) #4
sky
https://codereview.chromium.org/1800373002/diff/20001/ui/gfx/skia_util.cc File ui/gfx/skia_util.cc (right): https://codereview.chromium.org/1800373002/diff/20001/ui/gfx/skia_util.cc#newcode133 ui/gfx/skia_util.cc:133: grad_points, grad_colors, NULL, 2, SkShader::kClamp_TileMode)); Why does this change ...
4 years, 9 months ago (2016-03-16 15:39:43 UTC) #5
Evan Stade
will upload new patchset soon, for now just responding to comments https://codereview.chromium.org/1800373002/diff/20001/chrome/browser/ui/views/infobars/infobar_container_view.cc File chrome/browser/ui/views/infobars/infobar_container_view.cc (right): ...
4 years, 9 months ago (2016-03-16 19:29:52 UTC) #6
Evan Stade
updated
4 years, 9 months ago (2016-03-16 21:22:01 UTC) #7
sky
Assuming the skia_util change won't effect other places LGTM https://codereview.chromium.org/1800373002/diff/20001/ui/gfx/skia_util.cc File ui/gfx/skia_util.cc (right): https://codereview.chromium.org/1800373002/diff/20001/ui/gfx/skia_util.cc#newcode133 ui/gfx/skia_util.cc:133: ...
4 years, 9 months ago (2016-03-16 21:56:55 UTC) #8
Evan Stade
On 2016/03/16 21:56:55, sky wrote: > Assuming the skia_util change won't effect other places LGTM ...
4 years, 9 months ago (2016-03-16 21:59:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1800373002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1800373002/40001
4 years, 9 months ago (2016-03-16 22:00:55 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-16 23:18:14 UTC) #14
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/ed6800f22cb908b03fa72d876296a87e1e747b48 Cr-Commit-Position: refs/heads/master@{#381582}
4 years, 9 months ago (2016-03-16 23:24:35 UTC) #16
Peter Kasting
4 years, 9 months ago (2016-03-17 03:30:02 UTC) #17
Message was sent while issue was closed.
(I forgot to mail this reply agreeing with you)

https://codereview.chromium.org/1800373002/diff/20001/chrome/browser/ui/views...
File chrome/browser/ui/views/infobars/infobar_container_view.cc (right):

https://codereview.chromium.org/1800373002/diff/20001/chrome/browser/ui/views...
chrome/browser/ui/views/infobars/infobar_container_view.cc:82: int overlap =
GetVerticalOverlap(&total_height);
On 2016/03/16 19:29:51, Evan Stade wrote:
> On 2016/03/16 03:10:27, Peter Kasting wrote:
> > Nit: Can inline into next line
> 
> perhaps this works but it's not clear to me that it works (due to order of
> operations):
> 
> total_height -= overlap - GetVerticalOverlap(&total_height);

Oh, never mind, I didn't even see that the call was affecting |total_height|. 
Yeah, it would work correctly, but leave them separate.

Powered by Google App Engine
This is Rietveld 408576698