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

Unified Diff: content/browser/web_contents/web_contents_drag_win.h

Issue 18281002: Move WebDropData to content::DropData and split off conversion function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac build error. Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_drag_win.h
diff --git a/content/browser/web_contents/web_contents_drag_win.h b/content/browser/web_contents/web_contents_drag_win.h
index 42d2c689c5fdfe9d30f9cd49108f32070bce8cad..b6a9805819626e7494dac0579cc7835beeca6f1d 100644
--- a/content/browser/web_contents/web_contents_drag_win.h
+++ b/content/browser/web_contents/web_contents_drag_win.h
@@ -17,7 +17,6 @@
#include "ui/gfx/point.h"
class SkBitmap;
-struct WebDropData;
namespace gfx {
class ImageSkia;
@@ -28,6 +27,7 @@ class DragDropThread;
class WebContents;
class WebDragDest;
class WebDragSource;
+struct DropData;
// Windows-specific drag-and-drop handling in WebContentsView.
// If we are dragging a virtual file out of the browser, we use a background
@@ -45,7 +45,7 @@ class CONTENT_EXPORT WebContentsDragWin
virtual ~WebContentsDragWin();
// Called on UI thread.
- void StartDragging(const WebDropData& drop_data,
+ void StartDragging(const DropData& drop_data,
WebKit::WebDragOperationsMask ops,
const gfx::ImageSkia& image,
const gfx::Vector2d& image_offset);
@@ -61,19 +61,19 @@ class CONTENT_EXPORT WebContentsDragWin
private:
// Called on either UI thread or drag-and-drop thread.
- void PrepareDragForDownload(const WebDropData& drop_data,
+ void PrepareDragForDownload(const DropData& drop_data,
ui::OSExchangeData* data,
const GURL& page_url,
const std::string& page_encoding);
- void PrepareDragForFileContents(const WebDropData& drop_data,
+ void PrepareDragForFileContents(const DropData& drop_data,
ui::OSExchangeData* data);
- void PrepareDragForUrl(const WebDropData& drop_data,
+ void PrepareDragForUrl(const DropData& drop_data,
ui::OSExchangeData* data);
// Returns false if the source window becomes invalid when the drag ends.
// This could happen when the window gets destroyed when the drag is still in
// progress. No further processing should be done beyond this return point
// because the instance has been destroyed.
- bool DoDragging(const WebDropData& drop_data,
+ bool DoDragging(const DropData& drop_data,
WebKit::WebDragOperationsMask ops,
const GURL& page_url,
const std::string& page_encoding,
@@ -81,7 +81,7 @@ class CONTENT_EXPORT WebContentsDragWin
const gfx::Vector2d& image_offset);
// Called on drag-and-drop thread.
- void StartBackgroundDragging(const WebDropData& drop_data,
+ void StartBackgroundDragging(const DropData& drop_data,
WebKit::WebDragOperationsMask ops,
const GURL& page_url,
const std::string& page_encoding,
« no previous file with comments | « content/browser/web_contents/interstitial_page_impl.cc ('k') | content/browser/web_contents/web_contents_drag_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698