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

Side by Side Diff: components/bookmarks/browser/bookmark_pasteboard_helper_mac.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "components/bookmarks/browser/bookmark_pasteboard_helper_mac.h" 5 #include "components/bookmarks/browser/bookmark_pasteboard_helper_mac.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
11 #include "components/bookmarks/browser/bookmark_node.h" 11 #include "components/bookmarks/browser/bookmark_node.h"
12 #include "ui/base/clipboard/clipboard.h" 12 #include "ui/base/clipboard/clipboard.h"
13 13
14 using bookmarks::BookmarkNodeData;
15
14 NSString* const kBookmarkDictionaryListPboardType = 16 NSString* const kBookmarkDictionaryListPboardType =
15 @"BookmarkDictionaryListPboardType"; 17 @"BookmarkDictionaryListPboardType";
16 18
17 namespace { 19 namespace {
18 20
19 // An unofficial standard pasteboard title type to be provided alongside the 21 // An unofficial standard pasteboard title type to be provided alongside the
20 // |NSURLPboardType|. 22 // |NSURLPboardType|.
21 NSString* const kNSURLTitlePboardType = @"public.url-name"; 23 NSString* const kNSURLTitlePboardType = @"public.url-name";
22 24
23 // Pasteboard type used to store profile path to determine which profile 25 // Pasteboard type used to store profile path to determine which profile
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 bool PasteboardContainsBookmarks(ui::ClipboardType type) { 280 bool PasteboardContainsBookmarks(ui::ClipboardType type) {
279 NSPasteboard* pb = PasteboardFromType(type); 281 NSPasteboard* pb = PasteboardFromType(type);
280 282
281 NSArray* availableTypes = 283 NSArray* availableTypes =
282 [NSArray arrayWithObjects:kBookmarkDictionaryListPboardType, 284 [NSArray arrayWithObjects:kBookmarkDictionaryListPboardType,
283 kCrWebURLsWithTitlesPboardType, 285 kCrWebURLsWithTitlesPboardType,
284 NSURLPboardType, 286 NSURLPboardType,
285 nil]; 287 nil];
286 return [pb availableTypeFromArray:availableTypes] != nil; 288 return [pb availableTypeFromArray:availableTypes] != nil;
287 } 289 }
OLDNEW
« no previous file with comments | « components/bookmarks/browser/bookmark_pasteboard_helper_mac.h ('k') | components/bookmarks/browser/bookmark_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698