| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |