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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 std::string* file_contents) const override; | 171 std::string* file_contents) const override; |
172 bool GetHtml(base::string16* html, GURL* base_url) const override; | 172 bool GetHtml(base::string16* html, GURL* base_url) const override; |
173 bool HasString() const override; | 173 bool HasString() const override; |
174 bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const override; | 174 bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const override; |
175 bool HasFile() const override; | 175 bool HasFile() const override; |
176 bool HasFileContents() const override; | 176 bool HasFileContents() const override; |
177 bool HasHtml() const override; | 177 bool HasHtml() const override; |
178 bool HasCustomFormat(const Clipboard::FormatType& format) const override; | 178 bool HasCustomFormat(const Clipboard::FormatType& format) const override; |
179 void SetDownloadFileInfo( | 179 void SetDownloadFileInfo( |
180 const OSExchangeData::DownloadFileInfo& download_info) override; | 180 const OSExchangeData::DownloadFileInfo& download_info) override; |
181 void SetDragImage(const gfx::ImageSkia& image, | |
182 const gfx::Vector2d& cursor_offset) override; | |
183 const gfx::ImageSkia& GetDragImage() const override; | |
184 const gfx::Vector2d& GetDragImageOffset() const override; | |
185 | 181 |
186 private: | 182 private: |
187 scoped_refptr<DataObjectImpl> data_; | 183 scoped_refptr<DataObjectImpl> data_; |
188 base::win::ScopedComPtr<IDataObject> source_object_; | 184 base::win::ScopedComPtr<IDataObject> source_object_; |
189 | 185 |
190 // Drag image and offset data. Only used for Ash. | |
191 gfx::ImageSkia drag_image_; | |
192 gfx::Vector2d drag_image_offset_; | |
193 | |
194 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); | 186 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); |
195 }; | 187 }; |
196 | 188 |
197 } // namespace ui | 189 } // namespace ui |
198 | 190 |
199 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ | 191 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ |
OLD | NEW |