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

Unified Diff: chrome/browser/cocoa/bookmark_button.mm

Issue 2805099: Pulse new bookmarks (as triggered by bookmark bubble). If not possible, ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « chrome/browser/cocoa/bookmark_button.h ('k') | chrome/browser/cocoa/gradient_button_cell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/bookmark_button.mm
===================================================================
--- chrome/browser/cocoa/bookmark_button.mm (revision 53704)
+++ chrome/browser/cocoa/bookmark_button.mm (working copy)
@@ -13,6 +13,16 @@
// The opacity of the bookmark button drag image.
static const CGFloat kDragImageOpacity = 0.7;
+
+namespace bookmark_button {
+
+const NSString* kPulseBookmarkButtonNotification =
+ @"PulseBookmarkButtonNotification";
+const NSString* kBookmarkKey = @"BookmarkKey";
+const NSString* kBookmarkPulseFlagKey = @"BookmarkPulseFlagKey";
+
+};
+
@interface BookmarkButton(Private)
// Make a drag image for the button.
@@ -35,6 +45,8 @@
}
- (void)dealloc {
+ if ([[self cell] respondsToSelector:@selector(safelyStopPulsing)])
+ [[self cell] safelyStopPulsing];
view_id_util::UnsetID(self);
[super dealloc];
}
@@ -52,6 +64,14 @@
return [self bookmarkNode] ? NO : YES;
}
+- (void)setIsContinuousPulsing:(BOOL)flag {
+ [[self cell] setIsContinuousPulsing:flag];
+}
+
+- (BOOL)isContinuousPulsing {
+ return [[self cell] isContinuousPulsing];
+}
+
// By default, NSButton ignores middle-clicks.
// But we want them.
- (void)otherMouseUp:(NSEvent*)event {
« no previous file with comments | « chrome/browser/cocoa/bookmark_button.h ('k') | chrome/browser/cocoa/gradient_button_cell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698