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

Unified Diff: chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h

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
Index: chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h
diff --git a/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h b/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h
index 7f531dda625322c688c8629291c59f714d8ded2b..d7e2ff3e588fec0e3c7f7cc38432e434aace0302 100644
--- a/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h
+++ b/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h
@@ -8,11 +8,12 @@
#include <memory>
#include "base/macros.h"
-#import "chrome/browser/ui/cocoa/base_bubble_controller.h"
+#import "chrome/browser/ui/cocoa/omnibox_decoration_bubble_controller.h"
#include "content/public/common/media_stream_request.h"
class ContentSettingBubbleModel;
class ContentSettingBubbleWebContentsObserverBridge;
+class ContentSettingDecoration;
class ContentSettingMediaMenuModel;
@class InfoBubbleView;
@@ -50,7 +51,7 @@ using MediaMenuPartsMap =
} // namespace content_setting_bubble
// Manages a "content blocked" bubble.
-@interface ContentSettingBubbleController : BaseBubbleController {
+@interface ContentSettingBubbleController : OmniboxDecorationBubbleController {
@private
IBOutlet NSTextField* titleLabel_;
IBOutlet NSTextField* messageLabel_;
@@ -70,15 +71,19 @@ using MediaMenuPartsMap =
observerBridge_;
content_setting_bubble::PopupLinks popupLinks_;
content_setting_bubble::MediaMenuPartsMap mediaMenus_;
+
+ // The omnibox icon the bubble is anchored to.
+ ContentSettingDecoration* decoration_; // weak
}
// Creates and shows a content blocked bubble. Takes ownership of
// |contentSettingBubbleModel| but not of the other objects.
+ (ContentSettingBubbleController*)
- showForModel:(ContentSettingBubbleModel*)contentSettingBubbleModel
- webContents:(content::WebContents*)webContents
- parentWindow:(NSWindow*)parentWindow
- anchoredAt:(NSPoint)anchoredAt;
+showForModel:(ContentSettingBubbleModel*)contentSettingBubbleModel
+ webContents:(content::WebContents*)webContents
+parentWindow:(NSWindow*)parentWindow
+ decoration:(ContentSettingDecoration*)decoration
+ anchoredAt:(NSPoint)anchoredAt;
// Callback for the "don't block / continue blocking" radio group.
- (IBAction)allowBlockToggled:(id)sender;

Powered by Google App Engine
This is Rietveld 408576698