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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 explicit OSExchangeDataProviderWin(IDataObject* source); | 141 explicit OSExchangeDataProviderWin(IDataObject* source); |
142 OSExchangeDataProviderWin(); | 142 OSExchangeDataProviderWin(); |
143 | 143 |
144 virtual ~OSExchangeDataProviderWin(); | 144 virtual ~OSExchangeDataProviderWin(); |
145 | 145 |
146 IDataObject* data_object() const { return data_.get(); } | 146 IDataObject* data_object() const { return data_.get(); } |
147 IDataObjectAsyncCapability* async_operation() const { return data_.get(); } | 147 IDataObjectAsyncCapability* async_operation() const { return data_.get(); } |
148 | 148 |
149 // OSExchangeData::Provider methods. | 149 // OSExchangeData::Provider methods. |
150 virtual void SetString(const string16& data); | 150 virtual void SetString(const base::string16& data); |
151 virtual void SetURL(const GURL& url, const string16& title); | 151 virtual void SetURL(const GURL& url, const base::string16& title); |
152 virtual void SetFilename(const base::FilePath& path); | 152 virtual void SetFilename(const base::FilePath& path); |
153 virtual void SetFilenames( | 153 virtual void SetFilenames( |
154 const std::vector<OSExchangeData::FileInfo>& filenames); | 154 const std::vector<OSExchangeData::FileInfo>& filenames); |
155 virtual void SetPickledData(const OSExchangeData::CustomFormat& format, | 155 virtual void SetPickledData(const OSExchangeData::CustomFormat& format, |
156 const Pickle& data); | 156 const Pickle& data); |
157 virtual void SetFileContents(const base::FilePath& filename, | 157 virtual void SetFileContents(const base::FilePath& filename, |
158 const std::string& file_contents); | 158 const std::string& file_contents); |
159 virtual void SetHtml(const string16& html, const GURL& base_url); | 159 virtual void SetHtml(const base::string16& html, const GURL& base_url); |
160 | 160 |
161 virtual bool GetString(string16* data) const; | 161 virtual bool GetString(base::string16* data) const; |
162 virtual bool GetURLAndTitle(GURL* url, string16* title) const; | 162 virtual bool GetURLAndTitle(GURL* url, base::string16* title) const; |
163 virtual bool GetFilename(base::FilePath* path) const; | 163 virtual bool GetFilename(base::FilePath* path) const; |
164 virtual bool GetFilenames( | 164 virtual bool GetFilenames( |
165 std::vector<OSExchangeData::FileInfo>* filenames) const; | 165 std::vector<OSExchangeData::FileInfo>* filenames) const; |
166 virtual bool GetPickledData(const OSExchangeData::CustomFormat& format, | 166 virtual bool GetPickledData(const OSExchangeData::CustomFormat& format, |
167 Pickle* data) const; | 167 Pickle* data) const; |
168 virtual bool GetFileContents(base::FilePath* filename, | 168 virtual bool GetFileContents(base::FilePath* filename, |
169 std::string* file_contents) const; | 169 std::string* file_contents) const; |
170 virtual bool GetHtml(string16* html, GURL* base_url) const; | 170 virtual bool GetHtml(base::string16* html, GURL* base_url) const; |
171 virtual bool HasString() const; | 171 virtual bool HasString() const; |
172 virtual bool HasURL() const; | 172 virtual bool HasURL() const; |
173 virtual bool HasFile() const; | 173 virtual bool HasFile() const; |
174 virtual bool HasFileContents() const; | 174 virtual bool HasFileContents() const; |
175 virtual bool HasHtml() const; | 175 virtual bool HasHtml() const; |
176 virtual bool HasCustomFormat( | 176 virtual bool HasCustomFormat( |
177 const OSExchangeData::CustomFormat& format) const; | 177 const OSExchangeData::CustomFormat& format) const; |
178 virtual void SetDownloadFileInfo( | 178 virtual void SetDownloadFileInfo( |
179 const OSExchangeData::DownloadFileInfo& download_info); | 179 const OSExchangeData::DownloadFileInfo& download_info); |
180 virtual void SetInDragLoop(bool in_drag_loop) OVERRIDE; | 180 virtual void SetInDragLoop(bool in_drag_loop) OVERRIDE; |
(...skipping 13 matching lines...) Expand all Loading... |
194 gfx::ImageSkia drag_image_; | 194 gfx::ImageSkia drag_image_; |
195 gfx::Vector2d drag_image_offset_; | 195 gfx::Vector2d drag_image_offset_; |
196 #endif | 196 #endif |
197 | 197 |
198 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); | 198 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); |
199 }; | 199 }; |
200 | 200 |
201 } // namespace ui | 201 } // namespace ui |
202 | 202 |
203 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ | 203 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ |
OLD | NEW |