| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 virtual void SetFilename(const base::FilePath& path); | 154 virtual void SetFilename(const base::FilePath& path); |
| 155 virtual void SetFilenames( | 155 virtual void SetFilenames( |
| 156 const std::vector<OSExchangeData::FileInfo>& filenames); | 156 const std::vector<OSExchangeData::FileInfo>& filenames); |
| 157 virtual void SetPickledData(const OSExchangeData::CustomFormat& format, | 157 virtual void SetPickledData(const OSExchangeData::CustomFormat& format, |
| 158 const Pickle& data); | 158 const Pickle& data); |
| 159 virtual void SetFileContents(const base::FilePath& filename, | 159 virtual void SetFileContents(const base::FilePath& filename, |
| 160 const std::string& file_contents); | 160 const std::string& file_contents); |
| 161 virtual void SetHtml(const base::string16& html, const GURL& base_url); | 161 virtual void SetHtml(const base::string16& html, const GURL& base_url); |
| 162 | 162 |
| 163 virtual bool GetString(base::string16* data) const; | 163 virtual bool GetString(base::string16* data) const; |
| 164 virtual bool GetURLAndTitle(GURL* url, base::string16* title) const; | 164 virtual bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, |
| 165 GURL* url, |
| 166 base::string16* title) const; |
| 165 virtual bool GetFilename(base::FilePath* path) const; | 167 virtual bool GetFilename(base::FilePath* path) const; |
| 166 virtual bool GetFilenames( | 168 virtual bool GetFilenames( |
| 167 std::vector<OSExchangeData::FileInfo>* filenames) const; | 169 std::vector<OSExchangeData::FileInfo>* filenames) const; |
| 168 virtual bool GetPickledData(const OSExchangeData::CustomFormat& format, | 170 virtual bool GetPickledData(const OSExchangeData::CustomFormat& format, |
| 169 Pickle* data) const; | 171 Pickle* data) const; |
| 170 virtual bool GetFileContents(base::FilePath* filename, | 172 virtual bool GetFileContents(base::FilePath* filename, |
| 171 std::string* file_contents) const; | 173 std::string* file_contents) const; |
| 172 virtual bool GetHtml(base::string16* html, GURL* base_url) const; | 174 virtual bool GetHtml(base::string16* html, GURL* base_url) const; |
| 173 virtual bool HasString() const; | 175 virtual bool HasString() const; |
| 174 virtual bool HasURL() const; | 176 virtual bool HasURL() const; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 196 gfx::ImageSkia drag_image_; | 198 gfx::ImageSkia drag_image_; |
| 197 gfx::Vector2d drag_image_offset_; | 199 gfx::Vector2d drag_image_offset_; |
| 198 #endif | 200 #endif |
| 199 | 201 |
| 200 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); | 202 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); |
| 201 }; | 203 }; |
| 202 | 204 |
| 203 } // namespace ui | 205 } // namespace ui |
| 204 | 206 |
| 205 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ | 207 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ |
| OLD | NEW |