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

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

Issue 555112: Mac bookmark mgr: Restore previously selected group when search field is cleared. (Closed)
Patch Set: Fixed bug when entering multiple-char search strings Created 10 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/cocoa/bookmark_manager_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "base/scoped_nsobject.h" 6 #include "base/scoped_nsobject.h"
7 #include "base/scoped_ptr.h" 7 #include "base/scoped_ptr.h"
8 8
9 @class BookmarkItem; 9 @class BookmarkItem;
10 @class BookmarkTreeController; 10 @class BookmarkTreeController;
(...skipping 11 matching lines...) Expand all
22 IBOutlet NSPopUpButton* actionButton_; 22 IBOutlet NSPopUpButton* actionButton_;
23 IBOutlet BookmarkTreeController* groupsController_; 23 IBOutlet BookmarkTreeController* groupsController_;
24 IBOutlet BookmarkTreeController* listController_; 24 IBOutlet BookmarkTreeController* listController_;
25 25
26 Profile* profile_; // weak 26 Profile* profile_; // weak
27 scoped_ptr<BookmarkManagerBridge> bridge_; 27 scoped_ptr<BookmarkManagerBridge> bridge_;
28 scoped_nsobject<NSMapTable> nodeMap_; 28 scoped_nsobject<NSMapTable> nodeMap_;
29 scoped_nsobject<FakeBookmarkItem> root_; // Root of tree 29 scoped_nsobject<FakeBookmarkItem> root_; // Root of tree
30 scoped_nsobject<FakeBookmarkItem> searchGroup_; // Search Results group item 30 scoped_nsobject<FakeBookmarkItem> searchGroup_; // Search Results group item
31 scoped_nsobject<FakeBookmarkItem> recentGroup_; // Recently-Added group item 31 scoped_nsobject<FakeBookmarkItem> recentGroup_; // Recently-Added group item
32 scoped_nsobject<BookmarkItem> preSearchGroup_; // Selected before search
32 } 33 }
33 34
34 // Opens the bookmark manager window, or brings it to the front if it's open. 35 // Opens the bookmark manager window, or brings it to the front if it's open.
35 + (BookmarkManagerController*)showBookmarkManager:(Profile*)profile; 36 + (BookmarkManagerController*)showBookmarkManager:(Profile*)profile;
36 37
37 // The user Profile. 38 // The user Profile.
38 @property (readonly) Profile* profile; 39 @property (readonly) Profile* profile;
39 40
40 // The BookmarkModel of the manager's Profile. 41 // The BookmarkModel of the manager's Profile.
41 @property (readonly) BookmarkModel* bookmarkModel; 42 @property (readonly) BookmarkModel* bookmarkModel;
(...skipping 26 matching lines...) Expand all
68 // Exposed only for unit tests. 69 // Exposed only for unit tests.
69 @interface BookmarkManagerController (UnitTesting) 70 @interface BookmarkManagerController (UnitTesting)
70 71
71 - (void)forgetNode:(const BookmarkNode*)node; 72 - (void)forgetNode:(const BookmarkNode*)node;
72 @property (readonly) BookmarkTreeController* groupsController; 73 @property (readonly) BookmarkTreeController* groupsController;
73 @property (readonly) BookmarkTreeController* listController; 74 @property (readonly) BookmarkTreeController* listController;
74 @property (readonly) FakeBookmarkItem* searchGroup; 75 @property (readonly) FakeBookmarkItem* searchGroup;
75 @property (readonly) FakeBookmarkItem* recentGroup; 76 @property (readonly) FakeBookmarkItem* recentGroup;
76 77
77 @end 78 @end
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/bookmark_manager_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698