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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.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/location_bar/location_bar_view_mac.h
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
index 2820b31f1a46d7e31e809de9b5597420eea9dab6..02a40a8ae55ab0262b2617ae229bb00f17b4a7f3 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
@@ -106,22 +106,14 @@ class LocationBarViewMac : public LocationBar,
// Checks if the bookmark star should be enabled or not.
bool IsStarEnabled() const;
- // Get the point in window coordinates on the star for the bookmark bubble to
- // aim at. Only works if IsStarEnabled returns YES.
- NSPoint GetBookmarkBubblePoint() const;
+ // Get the point in window coordinates in the |decoration| at which the
+ // associate bubble aims.
+ NSPoint GetBubblePointForDecoration(LocationBarDecoration* decoration) const;
// Get the point in window coordinates in the save credit card icon for the
// save credit card bubble to aim at.
NSPoint GetSaveCreditCardBubblePoint() const;
- // Get the point in window coordinates on the star for the Translate bubble to
- // aim at.
- NSPoint GetTranslateBubblePoint() const;
-
- // Get the point in window coordinates in the lock icon for the Manage
- // Passwords bubble to aim at.
- NSPoint GetManagePasswordsBubblePoint() const;
-
// Get the point in window coordinates in the security icon at which the page
// info bubble aims.
NSPoint GetPageInfoBubblePoint() const;
@@ -199,10 +191,19 @@ class LocationBarViewMac : public LocationBar,
// Returns true if the location bar is dark.
bool IsLocationBarDark() const;
+ // Returns the decoration for the page info bubble.
+ LocationBarDecoration* GetPageInfoDecoration() const;
+
ManagePasswordsDecoration* manage_passwords_decoration() {
return manage_passwords_decoration_.get();
}
+ StarDecoration* star_decoration() const { return star_decoration_.get(); }
+
+ TranslateDecoration* translate_decoration() const {
+ return translate_decoration_.get();
+ }
+
Browser* browser() const { return browser_; }
// ZoomManagerObserver:

Powered by Google App Engine
This is Rietveld 408576698