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

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

Issue 2792183002: Delete ash-based code for Windows drag-and-drop graphics. (Closed)
Patch Set: Created 3 years, 8 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
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_H_ 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_H_
6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_H_ 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 virtual bool HasFileContents() const = 0; 123 virtual bool HasFileContents() const = 0;
124 virtual void SetDownloadFileInfo(const DownloadFileInfo& download) = 0; 124 virtual void SetDownloadFileInfo(const DownloadFileInfo& download) = 0;
125 #endif 125 #endif
126 126
127 #if defined(USE_AURA) 127 #if defined(USE_AURA)
128 virtual void SetHtml(const base::string16& html, const GURL& base_url) = 0; 128 virtual void SetHtml(const base::string16& html, const GURL& base_url) = 0;
129 virtual bool GetHtml(base::string16* html, GURL* base_url) const = 0; 129 virtual bool GetHtml(base::string16* html, GURL* base_url) const = 0;
130 virtual bool HasHtml() const = 0; 130 virtual bool HasHtml() const = 0;
131 #endif 131 #endif
132 132
133 #if defined(USE_AURA) || defined(OS_MACOSX) 133 #if (defined(USE_AURA) && !defined(OS_WIN)) || defined(OS_MACOSX)
danakj 2017/04/03 22:34:01 I took them out of the interface on WIN which I th
Peter Kasting 2017/04/04 00:31:14 Maybe this whole #if should be USE_ASH instead?
sadrul 2017/04/04 04:16:14 We do use this on desktop-linux. So maybe just (OS
danakj 2017/04/04 15:33:37 Done.
134 virtual void SetDragImage(const gfx::ImageSkia& image, 134 virtual void SetDragImage(const gfx::ImageSkia& image,
135 const gfx::Vector2d& cursor_offset) = 0; 135 const gfx::Vector2d& cursor_offset) = 0;
136 virtual const gfx::ImageSkia& GetDragImage() const = 0; 136 virtual const gfx::ImageSkia& GetDragImage() const = 0;
137 virtual const gfx::Vector2d& GetDragImageOffset() const = 0; 137 virtual const gfx::Vector2d& GetDragImageOffset() const = 0;
138 #endif 138 #endif
139 }; 139 };
140 140
141 OSExchangeData(); 141 OSExchangeData();
142 // Creates an OSExchangeData with the specified provider. OSExchangeData 142 // Creates an OSExchangeData with the specified provider. OSExchangeData
143 // takes ownership of the supplied provider. 143 // takes ownership of the supplied provider.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 private: 227 private:
228 // Provides the actual data. 228 // Provides the actual data.
229 std::unique_ptr<Provider> provider_; 229 std::unique_ptr<Provider> provider_;
230 230
231 DISALLOW_COPY_AND_ASSIGN(OSExchangeData); 231 DISALLOW_COPY_AND_ASSIGN(OSExchangeData);
232 }; 232 };
233 233
234 } // namespace ui 234 } // namespace ui
235 235
236 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_H_ 236 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698