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

Side by Side Diff: chrome/browser/cocoa/bookmark_bubble_controller.h

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #import "base/cocoa_protocols_mac.h" 6 #import "base/cocoa_protocols_mac.h"
7 #include "base/scoped_ptr.h" 7 #include "base/scoped_ptr.h"
8 #import "chrome/browser/cocoa/bookmark_model_observer_for_cocoa.h" 8 #import "chrome/browser/cocoa/bookmark_model_observer_for_cocoa.h"
9 9
10 class BookmarkBubbleNotificationBridge; 10 class BookmarkBubbleNotificationBridge;
11 class BookmarkModel; 11 class BookmarkModel;
12 class BookmarkNode; 12 class BookmarkNode;
13 @class BookmarkBubbleController; 13 @class BookmarkBubbleController;
14 @class InfoBubbleView; 14 @class InfoBubbleView;
15 15
16 16
17 // Controller for the bookmark bubble. The bookmark bubble is a 17 // Controller for the bookmark bubble. The bookmark bubble is a
18 // bubble that pops up when clicking on the STAR next to the URL to 18 // bubble that pops up when clicking on the STAR next to the URL to
19 // add or remove it as a bookmark. This bubble allows for editing of 19 // add or remove it as a bookmark. This bubble allows for editing of
20 // the bookmark in various ways (name, folder, etc.) 20 // the bookmark in various ways (name, folder, etc.)
21 @interface BookmarkBubbleController : NSWindowController<NSWindowDelegate> { 21 @interface BookmarkBubbleController : NSWindowController<NSWindowDelegate> {
22 @private 22 @private
23 NSWindow* parentWindow_; // weak 23 NSWindow* parentWindow_; // weak
24 24
25 // Both weak; owned by the current browser's profile 25 // Both weak; owned by the current browser's profile
26 BookmarkModel* model_; // weak 26 BookmarkModel* model_; // weak
27 const BookmarkNode* node_; // weak 27 const BookmarkNode* node_; // weak
28 28
29 // The bookmark node whose button we asked to pulse.
30 const BookmarkNode* pulsingBookmarkNode_; // weak
31
29 BOOL alreadyBookmarked_; 32 BOOL alreadyBookmarked_;
30 33
31 // Ping me when the bookmark model changes out from under us. 34 // Ping me when the bookmark model changes out from under us.
32 scoped_ptr<BookmarkModelObserverForCocoa> bookmark_observer_; 35 scoped_ptr<BookmarkModelObserverForCocoa> bookmark_observer_;
33 36
34 // Ping me when other Chrome things change out from under us. 37 // Ping me when other Chrome things change out from under us.
35 scoped_ptr<BookmarkBubbleNotificationBridge> chrome_observer_; 38 scoped_ptr<BookmarkBubbleNotificationBridge> chrome_observer_;
36 39
37 IBOutlet NSTextField* bigTitle_; // "Bookmark" or "Bookmark Added!" 40 IBOutlet NSTextField* bigTitle_; // "Bookmark" or "Bookmark Added!"
38 IBOutlet NSTextField* nameTextField_; 41 IBOutlet NSTextField* nameTextField_;
(...skipping 29 matching lines...) Expand all
68 // Exposed only for unit testing. 71 // Exposed only for unit testing.
69 @interface BookmarkBubbleController(ExposedForUnitTesting) 72 @interface BookmarkBubbleController(ExposedForUnitTesting)
70 - (void)addFolderNodes:(const BookmarkNode*)parent 73 - (void)addFolderNodes:(const BookmarkNode*)parent
71 toPopUpButton:(NSPopUpButton*)button 74 toPopUpButton:(NSPopUpButton*)button
72 indentation:(int)indentation; 75 indentation:(int)indentation;
73 - (void)setTitle:(NSString*)title parentFolder:(const BookmarkNode*)parent; 76 - (void)setTitle:(NSString*)title parentFolder:(const BookmarkNode*)parent;
74 - (void)setParentFolderSelection:(const BookmarkNode*)parent; 77 - (void)setParentFolderSelection:(const BookmarkNode*)parent;
75 + (NSString*)chooseAnotherFolderString; 78 + (NSString*)chooseAnotherFolderString;
76 - (NSPopUpButton*)folderPopUpButton; 79 - (NSPopUpButton*)folderPopUpButton;
77 @end 80 @end
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/bookmark_bar_controller_unittest.mm ('k') | chrome/browser/cocoa/bookmark_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698