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

Unified Diff: chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm

Issue 2542173002: [Mac] Omnibox icons active states (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm
diff --git a/chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm b/chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm
index 6ca97767152c61f85f78c8ea0026fd725191d35e..da462e64d86616263174dbfbc377ca8a2ed45a78 100644
--- a/chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm
+++ b/chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm
@@ -263,6 +263,15 @@ const NSInteger kFullscreenLeftOffset = 40;
return self;
}
+- (LocationBarDecoration*)decorationForBubble {
+ if (![self hasVisibleLocationBar])
+ return nullptr;
+
+ LocationBarViewMac* location_bar =
+ [[self.parentWindow windowController] locationBarBridge];
+ return location_bar->GetPageInfoDecoration();
+}
+
+ (NSPoint)getAnchorPointForBrowser:(Browser*)browser {
NSPoint anchor;
NSWindow* parentWindow = browser->window()->GetNativeWindow();
« no previous file with comments | « chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698