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

Unified Diff: chrome/browser/ui/cocoa/bubble_anchor_helper_views.h

Issue 2882533003: [Mac] Hover/Active Omnibox Icon States for Secondary UI MD (Closed)
Patch Set: Move LocationBarDecoration to cocoa 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/cocoa/bubble_anchor_helper_views.h
diff --git a/chrome/browser/ui/cocoa/bubble_anchor_helper_views.h b/chrome/browser/ui/cocoa/bubble_anchor_helper_views.h
index 527c5ceb187a1bfff42b85cb3adfd6255293b4a5..82136200728d545e4f9c8f8f8f6fea46d525b830 100644
--- a/chrome/browser/ui/cocoa/bubble_anchor_helper_views.h
+++ b/chrome/browser/ui/cocoa/bubble_anchor_helper_views.h
@@ -5,12 +5,37 @@
#ifndef CHROME_BROWSER_UI_COCOA_BUBBLE_ANCHOR_HELPER_VIEWS_H_
#define CHROME_BROWSER_UI_COCOA_BUBBLE_ANCHOR_HELPER_VIEWS_H_
+namespace gfx {
+class Point;
+}
+
namespace views {
class BubbleDialogDelegateView;
}
+class LocationBarDecoration;
+
+// Returns the manage password icon decoration in the omnibox.
+LocationBarDecoration* GetManagePasswordDecoration(
+ views::BubbleDialogDelegateView* bubble);
+
+// Returns the star icon decoration in the omnibox.
+LocationBarDecoration* GetStarDecoration(
+ views::BubbleDialogDelegateView* bubble);
+
+// Returns the page icon decoration in the omnibox.
+LocationBarDecoration* GetPageInfoDecoration(
+ views::BubbleDialogDelegateView* bubble);
+
+LocationBarDecoration* GetContentSettingDecoration(
+ views::BubbleDialogDelegateView* bubble,
+ const gfx::Point& anchor);
+
// Monitors |bubble|'s parent window for size changes, and updates the bubble
-// anchor. The monitor will be deleted when |bubble| is closed.
-void KeepBubbleAnchored(views::BubbleDialogDelegateView* bubble);
+// anchor. The monitor will be deleted when |bubble| is closed. If |decoration|
+// is provided, the decoration will be set to active in this function. It will
+// be set to inactive when |bubble| is closed.
+void KeepBubbleAnchored(views::BubbleDialogDelegateView* bubble,
+ LocationBarDecoration* decoration = nullptr);
#endif // CHROME_BROWSER_UI_COCOA_BUBBLE_ANCHOR_HELPER_VIEWS_H_

Powered by Google App Engine
This is Rietveld 408576698