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

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

Issue 555169: Merge 37521 - Mac bookmark manager: Crash after deleting folder in left pane... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/307/src/
Patch Set: Created 10 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/cocoa/bookmark_tree_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 <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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/bookmark_tree_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698