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

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

Issue 246633004: Remove non USE_AURA code from views files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT and throw away conflicting files; I'll redo them in another patch. Created 6 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 | 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 virtual bool GetHtml(base::string16* html, GURL* base_url) const; 174 virtual bool GetHtml(base::string16* html, GURL* base_url) const;
175 virtual bool HasString() const; 175 virtual bool HasString() const;
176 virtual bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const; 176 virtual bool HasURL(OSExchangeData::FilenameToURLPolicy policy) const;
177 virtual bool HasFile() const; 177 virtual bool HasFile() const;
178 virtual bool HasFileContents() const; 178 virtual bool HasFileContents() const;
179 virtual bool HasHtml() const; 179 virtual bool HasHtml() const;
180 virtual bool HasCustomFormat( 180 virtual bool HasCustomFormat(
181 const OSExchangeData::CustomFormat& format) const; 181 const OSExchangeData::CustomFormat& format) const;
182 virtual void SetDownloadFileInfo( 182 virtual void SetDownloadFileInfo(
183 const OSExchangeData::DownloadFileInfo& download_info); 183 const OSExchangeData::DownloadFileInfo& download_info);
184 #if defined(USE_AURA)
185 virtual void SetDragImage(const gfx::ImageSkia& image, 184 virtual void SetDragImage(const gfx::ImageSkia& image,
186 const gfx::Vector2d& cursor_offset) OVERRIDE; 185 const gfx::Vector2d& cursor_offset) OVERRIDE;
187 virtual const gfx::ImageSkia& GetDragImage() const OVERRIDE; 186 virtual const gfx::ImageSkia& GetDragImage() const OVERRIDE;
188 virtual const gfx::Vector2d& GetDragImageOffset() const OVERRIDE; 187 virtual const gfx::Vector2d& GetDragImageOffset() const OVERRIDE;
189 #endif
190 188
191 private: 189 private:
192 scoped_refptr<DataObjectImpl> data_; 190 scoped_refptr<DataObjectImpl> data_;
193 base::win::ScopedComPtr<IDataObject> source_object_; 191 base::win::ScopedComPtr<IDataObject> source_object_;
194 192
195 #if defined(USE_AURA)
196 // Drag image and offset data. Only used for Ash. 193 // Drag image and offset data. Only used for Ash.
197 gfx::ImageSkia drag_image_; 194 gfx::ImageSkia drag_image_;
198 gfx::Vector2d drag_image_offset_; 195 gfx::Vector2d drag_image_offset_;
199 #endif
200 196
201 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); 197 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin);
202 }; 198 };
203 199
204 } // namespace ui 200 } // namespace ui
205 201
206 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ 202 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698