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

Side by Side Diff: ui/base/dragdrop/os_exchange_data_provider_win.cc

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 (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 "ui/base/dragdrop/os_exchange_data_provider_win.h" 5 #include "ui/base/dragdrop/os_exchange_data_provider_win.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 wcsncpy_s(descriptor->fgd[0].cFileName, MAX_PATH, file_name.c_str(), 1058 wcsncpy_s(descriptor->fgd[0].cFileName, MAX_PATH, file_name.c_str(),
1059 std::min(file_name.size(), static_cast<size_t>(MAX_PATH - 1u))); 1059 std::min(file_name.size(), static_cast<size_t>(MAX_PATH - 1u)));
1060 1060
1061 STGMEDIUM* storage = new STGMEDIUM; 1061 STGMEDIUM* storage = new STGMEDIUM;
1062 storage->tymed = TYMED_HGLOBAL; 1062 storage->tymed = TYMED_HGLOBAL;
1063 storage->hGlobal = hdata; 1063 storage->hGlobal = hdata;
1064 storage->pUnkForRelease = NULL; 1064 storage->pUnkForRelease = NULL;
1065 return storage; 1065 return storage;
1066 } 1066 }
1067 1067
1068 ///////////////////////////////////////////////////////////////////////////////
1069 // OSExchangeData, public:
1070
1071 // static
1072 OSExchangeData::Provider* OSExchangeData::CreateProvider() {
1073 return new OSExchangeDataProviderWin();
1074 }
1075
1076 } // namespace ui 1068 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698