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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_button.h

Issue 1308293002: [Mac] Refactor bookmark pulsing into BookmarkBubbleObserverCocoa. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmarkeditor
Patch Set: Address comments. Update unit_tests. Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 #include <vector> 6 #include <vector>
7 #import "chrome/browser/ui/cocoa/draggable_button.h" 7 #import "chrome/browser/ui/cocoa/draggable_button.h"
8 #import "chrome/browser/ui/cocoa/themed_window.h" 8 #import "chrome/browser/ui/cocoa/themed_window.h"
9 #include "ui/base/window_open_disposition.h" 9 #include "ui/base/window_open_disposition.h"
10 10
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 + (BookmarkButton*)draggedButton; 245 + (BookmarkButton*)draggedButton;
246 246
247 247
248 @end // @interface BookmarkButton 248 @end // @interface BookmarkButton
249 249
250 250
251 @interface BookmarkButton(TestingAPI) 251 @interface BookmarkButton(TestingAPI)
252 - (void)beginDrag:(NSEvent*)event; 252 - (void)beginDrag:(NSEvent*)event;
253 @end 253 @end
254 254
255 namespace bookmark_button {
256
257 // Notifications for pulsing of bookmarks.
258 extern NSString* const kPulseBookmarkButtonNotification;
259
260 // Key for userInfo dict of a kPulseBookmarkButtonNotification.
261 // Value is a [NSValue valueWithPointer:]; pointer is a (const BookmarkNode*).
262 extern NSString* const kBookmarkKey;
263
264 // Key for userInfo dict of a kPulseBookmarkButtonNotification.
265 // Value is a [NSNumber numberWithBool:] to turn pulsing on or off.
266 extern NSString* const kBookmarkPulseFlagKey;
267
268 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698