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