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

Issue 1767363002: [md] Give each infobar its own layer. (Closed)

Created:
4 years, 9 months ago by Evan Stade
Modified:
4 years, 9 months ago
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] Give each infobar its own layer. This is necessary so latter bars can draw their arrow above the previous bar. This is similar to crbug.com/589771 , the fix for which only worked for the first infobar. This also fixes hit testing which was broken when there was a floating bookmark bar below the infobar. BUG=592727, 593640 Committed: https://crrev.com/966e15221d7c60c7922d94af047a6663cb175c1e Cr-Commit-Position: refs/heads/master@{#381267}

Patch Set 1 #

Total comments: 12

Patch Set 2 : nits #

Patch Set 3 : make DoesIntersectRect do what the name says #

Total comments: 3

Patch Set 4 : improve comment #

Patch Set 5 : true intersection #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -6 lines) Patch
M chrome/browser/ui/views/infobars/infobar_container_view.cc View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.h View 1 2 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.cc View 1 2 3 4 2 chunks +13 lines, -0 lines 1 comment Download

Messages

Total messages: 37 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767363002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767363002/1
4 years, 9 months ago (2016-03-08 00:51:43 UTC) #4
Evan Stade
https://codereview.chromium.org/1767363002/diff/1/chrome/browser/ui/views/infobars/infobar_container_view.cc File chrome/browser/ui/views/infobars/infobar_container_view.cc (right): https://codereview.chromium.org/1767363002/diff/1/chrome/browser/ui/views/infobars/infobar_container_view.cc#newcode69 chrome/browser/ui/views/infobars/infobar_container_view.cc:69: bool InfoBarContainerView::DoesIntersectRect(const View* target, it seems it's necessary to ...
4 years, 9 months ago (2016-03-08 00:54:04 UTC) #5
Peter Kasting
https://codereview.chromium.org/1767363002/diff/1/chrome/browser/ui/views/infobars/infobar_container_view.cc File chrome/browser/ui/views/infobars/infobar_container_view.cc (right): https://codereview.chromium.org/1767363002/diff/1/chrome/browser/ui/views/infobars/infobar_container_view.cc#newcode73 chrome/browser/ui/views/infobars/infobar_container_view.cc:73: // vertical space occupied by the arrow). Add to ...
4 years, 9 months ago (2016-03-08 01:08:17 UTC) #6
Evan Stade
https://codereview.chromium.org/1767363002/diff/1/chrome/browser/ui/views/infobars/infobar_container_view.cc File chrome/browser/ui/views/infobars/infobar_container_view.cc (right): https://codereview.chromium.org/1767363002/diff/1/chrome/browser/ui/views/infobars/infobar_container_view.cc#newcode73 chrome/browser/ui/views/infobars/infobar_container_view.cc:73: // vertical space occupied by the arrow). On 2016/03/08 ...
4 years, 9 months ago (2016-03-08 01:43:29 UTC) #7
Peter Kasting
https://codereview.chromium.org/1767363002/diff/1/chrome/browser/ui/views/infobars/infobar_view.cc File chrome/browser/ui/views/infobars/infobar_view.cc (right): https://codereview.chromium.org/1767363002/diff/1/chrome/browser/ui/views/infobars/infobar_view.cc#newcode440 chrome/browser/ui/views/infobars/infobar_view.cc:440: return rect.CenterPoint().y() >= arrow_height(); On 2016/03/08 01:43:29, Evan Stade ...
4 years, 9 months ago (2016-03-08 03:11:05 UTC) #8
Evan Stade
+tdanderson: you have experience with touch event handling, right? Can you respond to Peter's concerns?
4 years, 9 months ago (2016-03-08 21:46:08 UTC) #10
tdanderson
On 2016/03/08 21:46:08, Evan Stade wrote: > +tdanderson: you have experience with touch event handling, ...
4 years, 9 months ago (2016-03-09 19:23:11 UTC) #11
tdanderson
I'm finally able to build and took a look at this today. Please see below: ...
4 years, 9 months ago (2016-03-14 17:53:03 UTC) #12
Evan Stade
thanks Terry. PTAL latest patch.
4 years, 9 months ago (2016-03-14 19:50:52 UTC) #13
tdanderson
LGTM
4 years, 9 months ago (2016-03-14 19:55:54 UTC) #14
Peter Kasting
LGTM https://codereview.chromium.org/1767363002/diff/40001/chrome/browser/ui/views/infobars/infobar_container_view.cc File chrome/browser/ui/views/infobars/infobar_container_view.cc (right): https://codereview.chromium.org/1767363002/diff/40001/chrome/browser/ui/views/infobars/infobar_container_view.cc#newcode73 chrome/browser/ui/views/infobars/infobar_container_view.cc:73: // vertical space occupied by the arrow). It ...
4 years, 9 months ago (2016-03-14 22:37:36 UTC) #15
Evan Stade
https://codereview.chromium.org/1767363002/diff/40001/chrome/browser/ui/views/infobars/infobar_container_view.cc File chrome/browser/ui/views/infobars/infobar_container_view.cc (right): https://codereview.chromium.org/1767363002/diff/40001/chrome/browser/ui/views/infobars/infobar_container_view.cc#newcode73 chrome/browser/ui/views/infobars/infobar_container_view.cc:73: // vertical space occupied by the arrow). On 2016/03/14 ...
4 years, 9 months ago (2016-03-14 23:12:47 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767363002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767363002/60001
4 years, 9 months ago (2016-03-14 23:14:01 UTC) #19
Peter Kasting
LGTM (again) https://codereview.chromium.org/1767363002/diff/40001/chrome/browser/ui/views/infobars/infobar_container_view.cc File chrome/browser/ui/views/infobars/infobar_container_view.cc (right): https://codereview.chromium.org/1767363002/diff/40001/chrome/browser/ui/views/infobars/infobar_container_view.cc#newcode73 chrome/browser/ui/views/infobars/infobar_container_view.cc:73: // vertical space occupied by the arrow). ...
4 years, 9 months ago (2016-03-14 23:14:29 UTC) #20
Evan Stade
https://codereview.chromium.org/1767363002/diff/80001/chrome/browser/ui/views/infobars/infobar_view.cc File chrome/browser/ui/views/infobars/infobar_view.cc (right): https://codereview.chromium.org/1767363002/diff/80001/chrome/browser/ui/views/infobars/infobar_view.cc#newcode439 chrome/browser/ui/views/infobars/infobar_view.cc:439: return rect.Intersects(non_arrow_bounds); turns out Intersects is required to fix ...
4 years, 9 months ago (2016-03-14 23:23:47 UTC) #23
Evan Stade
On 2016/03/14 23:14:29, Peter Kasting wrote: > LGTM (again) > > https://codereview.chromium.org/1767363002/diff/40001/chrome/browser/ui/views/infobars/infobar_container_view.cc > File chrome/browser/ui/views/infobars/infobar_container_view.cc ...
4 years, 9 months ago (2016-03-14 23:27:34 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767363002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767363002/80001
4 years, 9 months ago (2016-03-14 23:28:14 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-15 00:25:30 UTC) #28
Evan Stade
On 2016/03/14 23:23:47, Evan Stade wrote: > https://codereview.chromium.org/1767363002/diff/80001/chrome/browser/ui/views/infobars/infobar_view.cc > File chrome/browser/ui/views/infobars/infobar_view.cc (right): > > https://codereview.chromium.org/1767363002/diff/80001/chrome/browser/ui/views/infobars/infobar_view.cc#newcode439 ...
4 years, 9 months ago (2016-03-15 01:46:41 UTC) #29
Peter Kasting
On 2016/03/15 01:46:41, Evan Stade wrote: > On 2016/03/14 23:23:47, Evan Stade wrote: > > ...
4 years, 9 months ago (2016-03-15 07:11:57 UTC) #30
tdanderson
On 2016/03/15 07:11:57, Peter Kasting wrote: > On 2016/03/15 01:46:41, Evan Stade wrote: > > ...
4 years, 9 months ago (2016-03-15 15:17:37 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767363002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767363002/80001
4 years, 9 months ago (2016-03-15 18:42:40 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-15 18:48:28 UTC) #35
commit-bot: I haz the power
4 years, 9 months ago (2016-03-15 18:50:51 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/966e15221d7c60c7922d94af047a6663cb175c1e
Cr-Commit-Position: refs/heads/master@{#381267}

Powered by Google App Engine
This is Rietveld 408576698