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

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

Issue 422673002: Move BookmarkNodeData into bookmarks namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 6 years, 4 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
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::BookmarkNodeData;
18
17 NSString* kBookmarkButtonDragType = @"ChromiumBookmarkButtonDragType"; 19 NSString* kBookmarkButtonDragType = @"ChromiumBookmarkButtonDragType";
18 20
19 @interface BookmarkFolderTarget() 21 @interface BookmarkFolderTarget()
20 // Copies the given bookmark node to the given pasteboard, declaring appropriate 22 // Copies the given bookmark node to the given pasteboard, declaring appropriate
21 // types (to paste a URL with a title). 23 // types (to paste a URL with a title).
22 - (void)copyBookmarkNode:(const BookmarkNode*)node 24 - (void)copyBookmarkNode:(const BookmarkNode*)node
23 toDragPasteboard:(NSPasteboard*)pboard; 25 toDragPasteboard:(NSPasteboard*)pboard;
24 @end 26 @end
25 27
26 @implementation BookmarkFolderTarget 28 @implementation BookmarkFolderTarget
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 [pboard addTypes:[NSArray arrayWithObject:kBookmarkButtonDragType] 118 [pboard addTypes:[NSArray arrayWithObject:kBookmarkButtonDragType]
117 owner:nil]; 119 owner:nil];
118 [pboard setData:[NSData dataWithBytes:&button length:sizeof(button)] 120 [pboard setData:[NSData dataWithBytes:&button length:sizeof(button)]
119 forType:kBookmarkButtonDragType]; 121 forType:kBookmarkButtonDragType];
120 } else { 122 } else {
121 NOTREACHED(); 123 NOTREACHED();
122 } 124 }
123 } 125 }
124 126
125 @end 127 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698