Chromium Code Reviews| 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..89c50ead3d87eb9bce5043c4359f90e225f4694b 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 at. |
|
Robert Sesek
2016/11/28 22:46:59
nit: "at" at the end of this sentence is weird
spqchan
2016/11/29 17:34:49
Done.
|
| + 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: |