| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |