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

Issue 962453002: Update permission bubble anchor when omnibar is hidden (Closed)

Created:
5 years, 9 months ago by hcarmona
Modified:
5 years, 9 months ago
Reviewers:
msw, felt, groby-ooo-7-16
CC:
chromium-reviews, msw+watch_chromium.org, alicet1, tfarina, ainslie, Finnur, Mike Wittman, Greg Billock, Dan Beam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update permission bubble anchor when omnibar is hidden The permission bubble is created once. It now chooses an appropriate anchor if the omnibar is not visible. The bubble's anchor is updated when fullscreen is toggled. Screenshots of change: http://imgur.com/a/PmEQz BUG=440403, 440401 Committed: https://crrev.com/32a02419d38bf802329767c8bee375cc446e6756 Cr-Commit-Position: refs/heads/master@{#321864}

Patch Set 1 : Do Not Commit #

Patch Set 2 : Fix issue #

Total comments: 19

Patch Set 3 : Attempted Trybot Fix #

Patch Set 4 : Update comment and don't CHECK(anchor_view) #

Total comments: 2

Patch Set 5 : Center open bubble #

Patch Set 6 : Update Fullscreen Parent #

Total comments: 14

Patch Set 7 : Apply Feedback #

Total comments: 4

Patch Set 8 : Move anchor logic to PermissionBubbleViewViews #

Total comments: 20

Patch Set 9 : Apply Feedback #

Total comments: 10

Patch Set 10 : Apply Feedback #

Patch Set 11 : Attempt to fix trybots #

Patch Set 12 : Revert to UpdateAnchorPosition in BrowserView #

Total comments: 2

Patch Set 13 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -51 lines) Patch
M chrome/browser/ui/views/exclusive_access_bubble_views.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/exclusive_access_bubble_views.cc View 1 2 3 4 5 6 7 8 9 5 chunks +12 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/website_settings/permissions_bubble_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/website_settings/permissions_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +89 lines, -24 lines 0 comments Download

Messages

Total messages: 33 (3 generated)
hcarmona
This change will make the permission bubble centered across the top of the window if ...
5 years, 9 months ago (2015-02-27 23:15:05 UTC) #2
hcarmona
https://codereview.chromium.org/962453002/diff/20001/ui/views/bubble/bubble_delegate.cc File ui/views/bubble/bubble_delegate.cc (right): https://codereview.chromium.org/962453002/diff/20001/ui/views/bubble/bubble_delegate.cc#newcode99 ui/views/bubble/bubble_delegate.cc:99: views::View* anchor = bubble_delegate->GetAnchorView(); Trybots hated this check. I'm ...
5 years, 9 months ago (2015-02-28 00:24:54 UTC) #3
groby-ooo-7-16
I might be seriously misunderstanding how the PermissionBubble happens, so lots of questions. https://codereview.chromium.org/962453002/diff/20001/chrome/browser/ui/views/frame/browser_view.cc File ...
5 years, 9 months ago (2015-02-28 00:25:13 UTC) #4
groby-ooo-7-16
https://codereview.chromium.org/962453002/diff/20001/ui/views/bubble/bubble_delegate.cc File ui/views/bubble/bubble_delegate.cc (right): https://codereview.chromium.org/962453002/diff/20001/ui/views/bubble/bubble_delegate.cc#newcode99 ui/views/bubble/bubble_delegate.cc:99: views::View* anchor = bubble_delegate->GetAnchorView(); On 2015/02/28 00:24:53, Hector Carmona ...
5 years, 9 months ago (2015-02-28 00:26:22 UTC) #5
hcarmona
https://codereview.chromium.org/962453002/diff/20001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/962453002/diff/20001/chrome/browser/ui/views/frame/browser_view.cc#newcode543 chrome/browser/ui/views/frame/browser_view.cc:543: permission_bubble_view_.reset(new PermissionBubbleViewViews( On 2015/02/28 00:25:12, groby wrote: > I'm ...
5 years, 9 months ago (2015-02-28 01:14:16 UTC) #6
felt
https://codereview.chromium.org/962453002/diff/20001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/962453002/diff/20001/chrome/browser/ui/views/frame/browser_view.cc#newcode2306 chrome/browser/ui/views/frame/browser_view.cc:2306: UpdatePermissionBubbleView(); On 2015/02/28 01:14:16, Hector Carmona wrote: > On ...
5 years, 9 months ago (2015-03-03 01:04:36 UTC) #7
hcarmona
https://codereview.chromium.org/962453002/diff/20001/chrome/browser/ui/views/frame/browser_view.h File chrome/browser/ui/views/frame/browser_view.h (right): https://codereview.chromium.org/962453002/diff/20001/chrome/browser/ui/views/frame/browser_view.h#newcode130 chrome/browser/ui/views/frame/browser_view.h:130: // fullscreen. On 2015/03/03 01:04:35, felt wrote: > On ...
5 years, 9 months ago (2015-03-06 23:24:16 UTC) #8
felt
https://codereview.chromium.org/962453002/diff/20001/chrome/browser/ui/views/frame/browser_view.h File chrome/browser/ui/views/frame/browser_view.h (right): https://codereview.chromium.org/962453002/diff/20001/chrome/browser/ui/views/frame/browser_view.h#newcode130 chrome/browser/ui/views/frame/browser_view.h:130: // fullscreen. On 2015/03/06 23:24:16, Hector Carmona wrote: > ...
5 years, 9 months ago (2015-03-07 03:31:55 UTC) #9
hcarmona
On 2015/03/07 03:31:55, felt wrote: > https://codereview.chromium.org/962453002/diff/20001/chrome/browser/ui/views/frame/browser_view.h > File chrome/browser/ui/views/frame/browser_view.h (right): > > https://codereview.chromium.org/962453002/diff/20001/chrome/browser/ui/views/frame/browser_view.h#newcode130 > ...
5 years, 9 months ago (2015-03-09 23:43:57 UTC) #10
groby-ooo-7-16
You should probably add somebody to the reviewers who is an OWNER :)
5 years, 9 months ago (2015-03-10 23:38:17 UTC) #11
hcarmona
msw@, you're owner at the views level. Would you be the right reviewer?
5 years, 9 months ago (2015-03-11 21:09:38 UTC) #12
msw
I'm not sure if this is a good idea as a one-off solution with no ...
5 years, 9 months ago (2015-03-11 22:25:31 UTC) #13
groby-ooo-7-16
msw: I'm currently the person trying to corral various bubble efforts. I asked hector to ...
5 years, 9 months ago (2015-03-12 00:44:49 UTC) #14
hcarmona
https://codereview.chromium.org/962453002/diff/100001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/962453002/diff/100001/chrome/browser/ui/views/frame/browser_view.cc#newcode548 chrome/browser/ui/views/frame/browser_view.cc:548: void BrowserView::UpdatePermissionBubbleViewAnchor() { On 2015/03/12 00:44:49, groby wrote: > ...
5 years, 9 months ago (2015-03-12 18:43:33 UTC) #15
groby-ooo-7-16
https://codereview.chromium.org/962453002/diff/100001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/962453002/diff/100001/chrome/browser/ui/views/frame/browser_view.cc#newcode548 chrome/browser/ui/views/frame/browser_view.cc:548: void BrowserView::UpdatePermissionBubbleViewAnchor() { On 2015/03/12 18:43:33, Hector Carmona wrote: ...
5 years, 9 months ago (2015-03-12 19:27:47 UTC) #16
msw
This bubble has non-trivial one-off behavior that strikes me as odd. 1) From the start ...
5 years, 9 months ago (2015-03-12 20:44:05 UTC) #17
hcarmona
Applied feedback but running into a weird issue: 1. Enter Fullscreen 2. Ask for Geo ...
5 years, 9 months ago (2015-03-17 01:29:27 UTC) #18
msw
Please try to use widget observation (but not if it's a big hassle). On 2015/03/17 ...
5 years, 9 months ago (2015-03-17 21:13:15 UTC) #19
hcarmona
Previous weird issue has been resolved thanks to msw's feedback. Moved the update anchor code ...
5 years, 9 months ago (2015-03-18 18:00:06 UTC) #20
msw
On 2015/03/18 18:00:06, Hector Carmona wrote: > Moved the update anchor code to the widget ...
5 years, 9 months ago (2015-03-18 18:30:09 UTC) #21
hcarmona
On 2015/03/18 18:30:09, msw wrote: > On 2015/03/18 18:00:06, Hector Carmona wrote: > > Moved ...
5 years, 9 months ago (2015-03-18 23:50:39 UTC) #22
msw
On 2015/03/18 23:50:39, Hector Carmona wrote: > On 2015/03/18 18:30:09, msw wrote: > > On ...
5 years, 9 months ago (2015-03-19 18:26:07 UTC) #23
hcarmona
On 2015/03/19 18:26:07, msw wrote: > On 2015/03/18 23:50:39, Hector Carmona wrote: > > On ...
5 years, 9 months ago (2015-03-20 02:01:58 UTC) #24
msw
lgtm with a comment nit, thanks! https://codereview.chromium.org/962453002/diff/220001/chrome/browser/ui/views/website_settings/permissions_bubble_view.h File chrome/browser/ui/views/website_settings/permissions_bubble_view.h (right): https://codereview.chromium.org/962453002/diff/220001/chrome/browser/ui/views/website_settings/permissions_bubble_view.h#newcode27 chrome/browser/ui/views/website_settings/permissions_bubble_view.h:27: void UpdateAnchorPosition(); nit: ...
5 years, 9 months ago (2015-03-23 19:34:53 UTC) #25
hcarmona
Applied msw@'s feedback. felt@, groby@ any additional feedback before committing this CL? https://codereview.chromium.org/962453002/diff/220001/chrome/browser/ui/views/website_settings/permissions_bubble_view.h File chrome/browser/ui/views/website_settings/permissions_bubble_view.h ...
5 years, 9 months ago (2015-03-23 20:47:45 UTC) #26
felt
looks good to me, thank you!
5 years, 9 months ago (2015-03-23 21:07:12 UTC) #27
groby-ooo-7-16
LGTM as well
5 years, 9 months ago (2015-03-23 21:10:20 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/962453002/240001
5 years, 9 months ago (2015-03-23 21:23:40 UTC) #31
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 9 months ago (2015-03-23 21:45:22 UTC) #32
commit-bot: I haz the power
5 years, 9 months ago (2015-03-23 21:46:08 UTC) #33
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/32a02419d38bf802329767c8bee375cc446e6756
Cr-Commit-Position: refs/heads/master@{#321864}

Powered by Google App Engine
This is Rietveld 408576698