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

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

Issue 1853503004: Revert of Update BookmarkBarController to use non-deprecated dragging APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp20_107_bluetooth
Patch Set: 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
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_button_unittest.mm ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/ui/cocoa/bookmarks/bookmark_folder_target.h" 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_folder_target.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/sys_string_conversions.h" 8 #include "base/strings/sys_string_conversions.h"
9 #include "chrome/browser/profiles/profile_manager.h" 9 #include "chrome/browser/profiles/profile_manager.h"
10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h" 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h"
11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" 11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h"
12 #include "components/bookmarks/browser/bookmark_model.h" 12 #include "components/bookmarks/browser/bookmark_model.h"
13 #include "components/bookmarks/browser/bookmark_node_data.h" 13 #include "components/bookmarks/browser/bookmark_node_data.h"
14 #include "components/bookmarks/browser/bookmark_pasteboard_helper_mac.h" 14 #include "components/bookmarks/browser/bookmark_pasteboard_helper_mac.h"
15 #import "ui/base/cocoa/cocoa_base_utils.h" 15 #import "ui/base/cocoa/cocoa_base_utils.h"
16 16
17 using bookmarks::BookmarkNode; 17 using bookmarks::BookmarkNode;
18 using bookmarks::BookmarkNodeData; 18 using bookmarks::BookmarkNodeData;
19 19
20 NSString* kBookmarkButtonDragType = @"com.google.chrome.BookmarkButtonDrag"; 20 NSString* kBookmarkButtonDragType = @"ChromiumBookmarkButtonDragType";
21 21
22 @interface BookmarkFolderTarget() 22 @interface BookmarkFolderTarget()
23 // Copies the given bookmark node to the given pasteboard, declaring appropriate 23 // Copies the given bookmark node to the given pasteboard, declaring appropriate
24 // types (to paste a URL with a title). 24 // types (to paste a URL with a title).
25 - (void)copyBookmarkNode:(const BookmarkNode*)node 25 - (void)copyBookmarkNode:(const BookmarkNode*)node
26 toDragPasteboard:(NSPasteboard*)pboard; 26 toDragPasteboard:(NSPasteboard*)pboard;
27 @end 27 @end
28 28
29 @implementation BookmarkFolderTarget 29 @implementation BookmarkFolderTarget
30 30
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 [pboard addTypes:[NSArray arrayWithObject:kBookmarkButtonDragType] 119 [pboard addTypes:[NSArray arrayWithObject:kBookmarkButtonDragType]
120 owner:nil]; 120 owner:nil];
121 [pboard setData:[NSData dataWithBytes:&button length:sizeof(button)] 121 [pboard setData:[NSData dataWithBytes:&button length:sizeof(button)]
122 forType:kBookmarkButtonDragType]; 122 forType:kBookmarkButtonDragType];
123 } else { 123 } else {
124 NOTREACHED(); 124 NOTREACHED();
125 } 125 }
126 } 126 }
127 127
128 @end 128 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_button_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698