| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 // OSExchangeData::Provider methods. | 146 // OSExchangeData::Provider methods. |
| 147 Provider* Clone() const override; | 147 Provider* Clone() const override; |
| 148 void MarkOriginatedFromRenderer() override; | 148 void MarkOriginatedFromRenderer() override; |
| 149 bool DidOriginateFromRenderer() const override; | 149 bool DidOriginateFromRenderer() const override; |
| 150 void SetString(const base::string16& data) override; | 150 void SetString(const base::string16& data) override; |
| 151 void SetURL(const GURL& url, const base::string16& title) override; | 151 void SetURL(const GURL& url, const base::string16& title) override; |
| 152 void SetFilename(const base::FilePath& path) override; | 152 void SetFilename(const base::FilePath& path) override; |
| 153 void SetFilenames(const std::vector<FileInfo>& filenames) override; | 153 void SetFilenames(const std::vector<FileInfo>& filenames) override; |
| 154 void SetPickledData(const OSExchangeData::CustomFormat& format, | 154 void SetPickledData(const OSExchangeData::CustomFormat& format, |
| 155 const Pickle& data) override; | 155 const base::Pickle& data) override; |
| 156 void SetFileContents(const base::FilePath& filename, | 156 void SetFileContents(const base::FilePath& filename, |
| 157 const std::string& file_contents) override; | 157 const std::string& file_contents) override; |
| 158 void SetHtml(const base::string16& html, const GURL& base_url) override; | 158 void SetHtml(const base::string16& html, const GURL& base_url) override; |
| 159 | 159 |
| 160 bool GetString(base::string16* data) const override; | 160 bool GetString(base::string16* data) const override; |
| 161 bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, | 161 bool GetURLAndTitle(OSExchangeData::FilenameToURLPolicy policy, |
| 162 GURL* url, | 162 GURL* url, |
| 163 base::string16* title) const override; | 163 base::string16* title) const override; |
| 164 bool GetFilename(base::FilePath* path) const override; | 164 bool GetFilename(base::FilePath* path) const override; |
| 165 bool GetFilenames(std::vector<FileInfo>* filenames) const override; | 165 bool GetFilenames(std::vector<FileInfo>* filenames) const override; |
| 166 bool GetPickledData(const OSExchangeData::CustomFormat& format, | 166 bool GetPickledData(const OSExchangeData::CustomFormat& format, |
| 167 Pickle* data) const override; | 167 base::Pickle* data) const override; |
| 168 bool GetFileContents(base::FilePath* filename, | 168 bool GetFileContents(base::FilePath* filename, |
| 169 std::string* file_contents) const override; | 169 std::string* file_contents) const override; |
| 170 bool GetHtml(base::string16* html, GURL* base_url) const override; | 170 bool GetHtml(base::string16* html, GURL* base_url) const override; |
| 171 bool HasString() const override; | 171 bool HasString() const override; |
| 172 bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const override; | 172 bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const override; |
| 173 bool HasFile() const override; | 173 bool HasFile() const override; |
| 174 bool HasFileContents() const override; | 174 bool HasFileContents() const override; |
| 175 bool HasHtml() const override; | 175 bool HasHtml() const override; |
| 176 bool HasCustomFormat( | 176 bool HasCustomFormat( |
| 177 const OSExchangeData::CustomFormat& format) const override; | 177 const OSExchangeData::CustomFormat& format) const override; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 189 // Drag image and offset data. Only used for Ash. | 189 // Drag image and offset data. Only used for Ash. |
| 190 gfx::ImageSkia drag_image_; | 190 gfx::ImageSkia drag_image_; |
| 191 gfx::Vector2d drag_image_offset_; | 191 gfx::Vector2d drag_image_offset_; |
| 192 | 192 |
| 193 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); | 193 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 } // namespace ui | 196 } // namespace ui |
| 197 | 197 |
| 198 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ | 198 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ |
| OLD | NEW |