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

Side by Side Diff: components/bookmarks/core/browser/bookmark_pasteboard_helper_mac.mm

Issue 253753005: Move bookmarks' production code to components/bookmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@367656
Patch Set: Fix compilation for win_chromium_x64_rel Created 6 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h" 5 #include "components/bookmarks/core/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/core/browser/bookmark_node.h" 11 #include "components/bookmarks/core/browser/bookmark_node.h"
12 #include "ui/base/clipboard/clipboard.h" 12 #include "ui/base/clipboard/clipboard.h"
13 13
14 NSString* const kBookmarkDictionaryListPboardType = 14 NSString* const kBookmarkDictionaryListPboardType =
15 @"BookmarkDictionaryListPboardType"; 15 @"BookmarkDictionaryListPboardType";
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 bool PasteboardContainsBookmarks(ui::ClipboardType type) { 277 bool PasteboardContainsBookmarks(ui::ClipboardType type) {
278 NSPasteboard* pb = PasteboardFromType(type); 278 NSPasteboard* pb = PasteboardFromType(type);
279 279
280 NSArray* availableTypes = 280 NSArray* availableTypes =
281 [NSArray arrayWithObjects:kBookmarkDictionaryListPboardType, 281 [NSArray arrayWithObjects:kBookmarkDictionaryListPboardType,
282 kCrWebURLsWithTitlesPboardType, 282 kCrWebURLsWithTitlesPboardType,
283 NSURLPboardType, 283 NSURLPboardType,
284 nil]; 284 nil];
285 return [pb availableTypeFromArray:availableTypes] != nil; 285 return [pb availableTypeFromArray:availableTypes] != nil;
286 } 286 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698