| 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 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ | 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ |
| 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ | 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ |
| 7 | 7 |
| 8 #include <objidl.h> | 8 #include <objidl.h> |
| 9 #include <shlobj.h> | 9 #include <shlobj.h> |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 explicit OSExchangeDataProviderWin(IDataObject* source); | 140 explicit OSExchangeDataProviderWin(IDataObject* source); |
| 141 OSExchangeDataProviderWin(); | 141 OSExchangeDataProviderWin(); |
| 142 | 142 |
| 143 ~OSExchangeDataProviderWin() override; | 143 ~OSExchangeDataProviderWin() override; |
| 144 | 144 |
| 145 IDataObject* data_object() const { return data_.get(); } | 145 IDataObject* data_object() const { return data_.get(); } |
| 146 IDataObjectAsyncCapability* async_operation() const { return data_.get(); } | 146 IDataObjectAsyncCapability* async_operation() const { return data_.get(); } |
| 147 | 147 |
| 148 // OSExchangeData::Provider methods. | 148 // OSExchangeData::Provider methods. |
| 149 Provider* Clone() const override; | 149 std::unique_ptr<Provider> Clone() const override; |
| 150 void MarkOriginatedFromRenderer() override; | 150 void MarkOriginatedFromRenderer() override; |
| 151 bool DidOriginateFromRenderer() const override; | 151 bool DidOriginateFromRenderer() const override; |
| 152 void SetString(const base::string16& data) override; | 152 void SetString(const base::string16& data) override; |
| 153 void SetURL(const GURL& url, const base::string16& title) override; | 153 void SetURL(const GURL& url, const base::string16& title) override; |
| 154 void SetFilename(const base::FilePath& path) override; | 154 void SetFilename(const base::FilePath& path) override; |
| 155 void SetFilenames(const std::vector<FileInfo>& filenames) override; | 155 void SetFilenames(const std::vector<FileInfo>& filenames) override; |
| 156 void SetPickledData(const Clipboard::FormatType& format, | 156 void SetPickledData(const Clipboard::FormatType& format, |
| 157 const base::Pickle& data) override; | 157 const base::Pickle& data) override; |
| 158 void SetFileContents(const base::FilePath& filename, | 158 void SetFileContents(const base::FilePath& filename, |
| 159 const std::string& file_contents) override; | 159 const std::string& file_contents) override; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 190 // Drag image and offset data. Only used for Ash. | 190 // Drag image and offset data. Only used for Ash. |
| 191 gfx::ImageSkia drag_image_; | 191 gfx::ImageSkia drag_image_; |
| 192 gfx::Vector2d drag_image_offset_; | 192 gfx::Vector2d drag_image_offset_; |
| 193 | 193 |
| 194 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); | 194 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 } // namespace ui | 197 } // namespace ui |
| 198 | 198 |
| 199 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ | 199 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ |
| OLD | NEW |