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

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

Issue 10874068: When using action box on Mac, hide star when page is not bookmarked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Applied review comments. Created 8 years, 4 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 ff75448211d68e115f3d638d1d565291e42945f9..6ec7d0d6f289fe5f400f5e16ad7dccfa598c6fab 100644
--- a/chrome/browser/ui/cocoa/location_bar/star_decoration.h
+++ b/chrome/browser/ui/cocoa/location_bar/star_decoration.h
@@ -21,6 +21,9 @@ class StarDecoration : public ImageDecoration {
// Sets the image and tooltip based on |starred|.
void SetStarred(bool starred);
+ // Returns true if the star is lit.
+ bool starred() const { return starred_; }
+
// Get the point where the bookmark bubble should point within the
// decoration's frame.
NSPoint GetBubblePointInFrame(NSRect frame);
@@ -37,6 +40,9 @@ class StarDecoration : public ImageDecoration {
// The string to show for a tooltip.
scoped_nsobject<NSString> tooltip_;
+ // Whether the star icon is lit.
+ bool starred_;
+
DISALLOW_COPY_AND_ASSIGN(StarDecoration);
};
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm ('k') | chrome/browser/ui/cocoa/location_bar/star_decoration.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698