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

Unified Diff: chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.h

Issue 2851663002: [Mac] Fix for Page Info Bubble (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.h
diff --git a/chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.h b/chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.h
index 1621db3a84fe96aaba50b6d603617ddca02b4da4..eaa554006344594ad7e0e722c217ee102974394e 100644
--- a/chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.h
+++ b/chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.h
@@ -11,10 +11,11 @@
#include "base/mac/scoped_nsobject.h"
#include "base/macros.h"
-#import "chrome/browser/ui/cocoa/omnibox_decoration_bubble_controller.h"
+#import "chrome/browser/ui/cocoa/base_bubble_controller.h"
#include "chrome/browser/ui/page_info/page_info_ui.h"
#include "content/public/browser/web_contents_observer.h"
+class LocationBarDecoration;
class PageInfoUIBridge;
namespace content {
@@ -31,7 +32,7 @@ struct SecurityInfo;
// This NSWindowController subclass manages the InfoBubbleWindow and view that
// are displayed when the user clicks the favicon or security lock icon.
-@interface PageInfoBubbleController : OmniboxDecorationBubbleController {
+@interface PageInfoBubbleController : BaseBubbleController {
@private
content::WebContents* webContents_;
@@ -94,6 +95,12 @@ struct SecurityInfo;
// Bridge which implements the PageInfoUI interface and forwards
// methods on to this class.
std::unique_ptr<PageInfoUIBridge> bridge_;
+
+ // The omnibox icon the bubble is anchored to. The icon is set as active
+ // when the bubble is opened, and inactive when the bubble is closed.
+ // Usually we would override OmniboxDecorationBubbleController but the page
+ // info icon has a special case where it might cause a race condition.
Robert Sesek 2017/04/28 17:26:50 Please describe the race condition here and in the
+ LocationBarDecoration* decoration_; // Weak.
}
// Designated initializer. The controller will release itself when the bubble
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698