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

Side by Side Diff: ui/base/dragdrop/os_exchange_data_provider_mac.mm

Issue 2179813003: Allow OSExchangeData::Provider to be overridden at run time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete that. ;_; Created 4 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
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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698