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

Unified Diff: chrome/browser/ui/content_settings/content_setting_bubble_model.h

Issue 2882533003: [Mac] Hover/Active Omnibox Icon States for Secondary UI MD (Closed)
Patch Set: Added comments Created 3 years, 7 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/content_settings/content_setting_bubble_model.h
diff --git a/chrome/browser/ui/content_settings/content_setting_bubble_model.h b/chrome/browser/ui/content_settings/content_setting_bubble_model.h
index a31abbad68067eb2ff4d7ddaaeb1e981fca92202..ba4c1e718f6e77160cc907d3a46257061479355b 100644
--- a/chrome/browser/ui/content_settings/content_setting_bubble_model.h
+++ b/chrome/browser/ui/content_settings/content_setting_bubble_model.h
@@ -25,6 +25,10 @@
#include "ui/gfx/image/image.h"
#include "url/gurl.h"
+#if defined(OS_MACOSX)
+class LocationBarDecoration;
+#endif
+
class ContentSettingBubbleModelDelegate;
class Profile;
class ProtocolHandlerRegistry;
@@ -189,6 +193,14 @@ class ContentSettingBubbleModel : public content::NotificationObserver {
rappor_service_ = rappor_service;
}
+#if defined(OS_MACOSX)
+ LocationBarDecoration* decoration() const { return decoration_; }
+
+ void set_decoration(LocationBarDecoration* decoration) {
+ decoration_ = decoration;
+ }
+#endif
+
static const int kAllowButtonIndex;
protected:
@@ -256,6 +268,10 @@ class ContentSettingBubbleModel : public content::NotificationObserver {
// The service used to record Rappor metrics. Can be set for testing.
rappor::RapporServiceImpl* rappor_service_;
+#if defined(OS_MACOSX)
+ // The omnibox decoration that the bubble is anchored to.
+ LocationBarDecoration* decoration_ = nullptr;
+#endif
DISALLOW_COPY_AND_ASSIGN(ContentSettingBubbleModel);
};

Powered by Google App Engine
This is Rietveld 408576698