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