OLD | NEW |
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 "ui/base/dragdrop/os_exchange_data_provider_mac.h" | 5 #include "ui/base/dragdrop/os_exchange_data_provider_mac.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 // static | 205 // static |
206 NSArray* OSExchangeDataProviderMac::SupportedPasteboardTypes() { | 206 NSArray* OSExchangeDataProviderMac::SupportedPasteboardTypes() { |
207 return @[ | 207 return @[ |
208 kWebCustomDataPboardType, ui::ClipboardUtil::UTIForWebURLsAndTitles(), | 208 kWebCustomDataPboardType, ui::ClipboardUtil::UTIForWebURLsAndTitles(), |
209 NSURLPboardType, NSFilenamesPboardType, ui::kChromeDragDummyPboardType, | 209 NSURLPboardType, NSFilenamesPboardType, ui::kChromeDragDummyPboardType, |
210 NSStringPboardType, NSHTMLPboardType, NSRTFPboardType, | 210 NSStringPboardType, NSHTMLPboardType, NSRTFPboardType, |
211 NSFilenamesPboardType, ui::kWebCustomDataPboardType, NSPasteboardTypeString | 211 NSFilenamesPboardType, ui::kWebCustomDataPboardType, NSPasteboardTypeString |
212 ]; | 212 ]; |
213 } | 213 } |
214 | 214 |
215 /////////////////////////////////////////////////////////////////////////////// | |
216 // OSExchangeData, public: | |
217 | |
218 // static | |
219 OSExchangeData::Provider* OSExchangeData::CreateProvider() { | |
220 return new OSExchangeDataProviderMac; | |
221 } | |
222 | |
223 } // namespace ui | 215 } // namespace ui |
OLD | NEW |