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

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

Issue 2109663005: Permission prompts show in the top-left corner in fullscreen mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-bubble-detach-from-fullscreen
Patch Set: Take into account RTL displays and multiple monitors. Created 4 years, 5 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..ca4619c541efde61e95c58f0fdbcbce56afd87bf 100644
--- a/chrome/browser/ui/views/website_settings/permissions_bubble_view.cc
+++ b/chrome/browser/ui/views/website_settings/permissions_bubble_view.cc
@@ -362,10 +362,9 @@ void PermissionsBubbleDialogDelegateView::UpdateAnchor(
new views::BubbleBorder(adjusted_arrow, shadow(), color())));
// Reposition the bubble based on the updated arrow and view.
- if (anchor_view)
- SetAnchorView(anchor_view);
- else
- SetAnchorRect(gfx::Rect(anchor_point, gfx::Size()));
+ SetAnchorView(anchor_view);
Matt Giuca 2016/07/05 05:44:20 This change was necessary to properly respond to t
benwells 2016/07/06 01:08:53 Acknowledged.
+ // The anchor rect is ignored unless |anchor_view| is nullptr.
+ SetAnchorRect(gfx::Rect(anchor_point, gfx::Size()));
}
//////////////////////////////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698