| 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 <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 @class BookmarkItem; | 8 @class BookmarkItem; |
| 9 @class BookmarkManagerController; | 9 @class BookmarkManagerController; |
| 10 | 10 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 - (void)registerDragTypes; | 83 - (void)registerDragTypes; |
| 84 - (IBAction)cut:(id)sender; | 84 - (IBAction)cut:(id)sender; |
| 85 - (IBAction)copy:(id)sender; | 85 - (IBAction)copy:(id)sender; |
| 86 - (IBAction)paste:(id)sender; | 86 - (IBAction)paste:(id)sender; |
| 87 @end | 87 @end |
| 88 | 88 |
| 89 | 89 |
| 90 // Exposed only for unit tests. | 90 // Exposed only for unit tests. |
| 91 @interface BookmarkTreeController (UnitTesting) | 91 @interface BookmarkTreeController (UnitTesting) |
| 92 @property (readonly) NSOutlineView* outline; | 92 @property (readonly) NSOutlineView* outline; |
| 93 - (BookmarkItem*)newFolderWithTitle:(NSString*)title; |
| 93 - (NSArray*)readPropertyListFromPasteboard:(NSPasteboard*)pb; | 94 - (NSArray*)readPropertyListFromPasteboard:(NSPasteboard*)pb; |
| 94 - (BOOL)copyToPasteboard:(NSPasteboard*)pb; | 95 - (BOOL)copyToPasteboard:(NSPasteboard*)pb; |
| 95 - (BOOL)pasteFromPasteboard:(NSPasteboard*)pb; | 96 - (BOOL)pasteFromPasteboard:(NSPasteboard*)pb; |
| 96 - (BookmarkItem*)itemForDropOnItem:(BookmarkItem*)item | 97 - (BookmarkItem*)itemForDropOnItem:(BookmarkItem*)item |
| 97 proposedIndex:(NSInteger*)childIndex; | 98 proposedIndex:(NSInteger*)childIndex; |
| 98 - (void)moveItems:(NSArray*)items | 99 - (void)moveItems:(NSArray*)items |
| 99 toFolder:(BookmarkItem*)dstParent | 100 toFolder:(BookmarkItem*)dstParent |
| 100 atIndex:(int)dstIndex; | 101 atIndex:(int)dstIndex; |
| 101 @end | 102 @end |
| 102 | 103 |
| 103 | 104 |
| 104 // Outline view for bookmark tree; handles Cut/Copy/Paste and Delete key. | 105 // Outline view for bookmark tree; handles Cut/Copy/Paste and Delete key. |
| 105 @interface BookmarksOutlineView : NSOutlineView | 106 @interface BookmarksOutlineView : NSOutlineView |
| 106 // The owning BookmarkTreeController (same as the delegate). | 107 // The owning BookmarkTreeController (same as the delegate). |
| 107 @property (readonly) BookmarkTreeController* bookmarkController; | 108 @property (readonly) BookmarkTreeController* bookmarkController; |
| 108 @end | 109 @end |
| OLD | NEW |