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

Unified Diff: chrome/browser/ui/cocoa/location_bar/star_decoration.h

Issue 2972593002: Mac: Fix up location bar decoration bubble anchoring. (Closed)
Patch Set: Created 3 years, 5 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/location_bar/star_decoration.h
diff --git a/chrome/browser/ui/cocoa/location_bar/star_decoration.h b/chrome/browser/ui/cocoa/location_bar/star_decoration.h
index f0a6661a81ff89d90bf0635a0e0de03327ffdee1..06d7726a62ec63c2699ae7a7e9eae728b717942e 100644
--- a/chrome/browser/ui/cocoa/location_bar/star_decoration.h
+++ b/chrome/browser/ui/cocoa/location_bar/star_decoration.h
@@ -22,6 +22,10 @@ class StarDecoration : public ImageDecoration {
// Sets the image and tooltip based on |starred|.
void SetStarred(bool starred, bool locationBarIsDark);
+ // Returns an anchor for GetBubblePointInFrame which points between the star
+ // icon's legs.
+ static NSPoint GetStarBubblePointInFrame(NSRect draw_frame);
+
// Returns true if the star is lit.
bool starred() const { return starred_; }

Powered by Google App Engine
This is Rietveld 408576698