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

Unified Diff: chrome/browser/ui/views/website_settings/permissions_bubble_view.cc

Issue 2115433002: Ensure permission bubble is stacked below the exclusive access bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-bubble-detach-from-fullscreen
Patch Set: Fix Mac compile. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/website_settings/permissions_bubble_view.cc
diff --git a/chrome/browser/ui/views/website_settings/permissions_bubble_view.cc b/chrome/browser/ui/views/website_settings/permissions_bubble_view.cc
index 066900f7696c87c5e564b12879387c617e661c27..a54f86461619643ec622142627317c9142c03f85 100644
--- a/chrome/browser/ui/views/website_settings/permissions_bubble_view.cc
+++ b/chrome/browser/ui/views/website_settings/permissions_bubble_view.cc
@@ -405,6 +405,11 @@ void PermissionBubbleViewViews::Show(
bubble_delegate_->UpdateAnchor(GetAnchorView(),
GetAnchorPoint(),
GetAnchorArrow());
+
+ // Ensure this view does not cover over the exclusive access bubble.
+ gfx::NativeView exclusive_access_native_view = GetExclusiveAccessNativeView();
+ if (exclusive_access_native_view)
+ bubble_delegate_->GetWidget()->StackBelow(exclusive_access_native_view);
}
bool PermissionBubbleViewViews::CanAcceptRequestUpdate() {

Powered by Google App Engine
This is Rietveld 408576698