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

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

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderText fixup Created 8 years, 2 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.cc
diff --git a/content/browser/web_contents/web_contents_drag_win.cc b/content/browser/web_contents/web_contents_drag_win.cc
index 95106178b63f7029a744051ac51a399fdb48c084..adc4cec9d285dabf340345e88a4028956ab9192d 100644
--- a/content/browser/web_contents/web_contents_drag_win.cc
+++ b/content/browser/web_contents/web_contents_drag_win.cc
@@ -155,7 +155,7 @@ WebContentsDragWin::~WebContentsDragWin() {
void WebContentsDragWin::StartDragging(const WebDropData& drop_data,
WebDragOperationsMask ops,
const gfx::ImageSkia& image,
- const gfx::Point& image_offset) {
+ const gfx::Vector2d& image_offset) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
drag_source_ = new WebDragSource(source_window_, web_contents_);
@@ -193,7 +193,7 @@ void WebContentsDragWin::StartBackgroundDragging(
const GURL& page_url,
const std::string& page_encoding,
const gfx::ImageSkia& image,
- const gfx::Point& image_offset) {
+ const gfx::Vector2d& image_offset) {
drag_drop_thread_id_ = base::PlatformThread::CurrentId();
if (DoDragging(drop_data, ops, page_url, page_encoding,
@@ -308,7 +308,7 @@ bool WebContentsDragWin::DoDragging(const WebDropData& drop_data,
const GURL& page_url,
const std::string& page_encoding,
const gfx::ImageSkia& image,
- const gfx::Point& image_offset) {
+ const gfx::Vector2d& image_offset) {
ui::OSExchangeData data;
if (!drop_data.download_metadata.empty()) {

Powered by Google App Engine
This is Rietveld 408576698