Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: ui/base/dragdrop/os_exchange_data_provider_win.h

Issue 135633002: Don't populate URL data in WebDropData when dragging files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Blink style enums Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc ('k') | ui/base/dragdrop/os_exchange_data_provider_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698