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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_folder_target.h

Issue 1854223002: mac: Fix bookmark drag and drop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp37_dnd
Patch Set: Fix memory leak. Created 4 years, 8 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_FOLDER_TARGET_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_FOLDER_TARGET_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_FOLDER_TARGET_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_FOLDER_TARGET_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 @class BookmarkButton; 10 @class BookmarkButton;
(...skipping 12 matching lines...) Expand all
23 id<BookmarkButtonControllerProtocol> controller_; // weak 23 id<BookmarkButtonControllerProtocol> controller_; // weak
24 Profile* profile_; 24 Profile* profile_;
25 } 25 }
26 26
27 - (id)initWithController:(id<BookmarkButtonControllerProtocol>)controller 27 - (id)initWithController:(id<BookmarkButtonControllerProtocol>)controller
28 profile:(Profile*)profile; 28 profile:(Profile*)profile;
29 29
30 // Main IBAction for a button click. 30 // Main IBAction for a button click.
31 - (IBAction)openBookmarkFolderFromButton:(id)sender; 31 - (IBAction)openBookmarkFolderFromButton:(id)sender;
32 32
33 // Fill the given pasteboard with appropriate data when the given button is 33 // Returns a pasteboard item that has all bookmark information.
34 // dragged. Since the delegate has no way of providing pasteboard data later, 34 - (NSPasteboardItem*)pasteboardItemForDragOfButton:(BookmarkButton*)button;
35 // all data must actually be put into the pasteboard and not merely promised.
36 - (void)fillPasteboard:(NSPasteboard*)pboard
37 forDragOfButton:(BookmarkButton*)button;
38 35
39 @end 36 @end
40 37
41 // The (internal) |NSPasteboard| type string for bookmark button drags, used for 38 // The (internal) |NSPasteboard| type string for bookmark button drags, used for
42 // dragging buttons around the bookmark bar. The data for this type is just a 39 // dragging buttons around the bookmark bar. The data for this type is just a
43 // pointer to the |BookmarkButton| being dragged. 40 // pointer to the |BookmarkButton| being dragged.
44 extern NSString* kBookmarkButtonDragType; 41 extern NSString* kBookmarkButtonDragType;
45 42
46 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_FOLDER_TARGET_CONTROLLER_H _ 43 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_FOLDER_TARGET_CONTROLLER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698