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

Unified Diff: ui/base/dragdrop/os_exchange_data_provider_gtk.h

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: ui/base/dragdrop/os_exchange_data_provider_gtk.h
diff --git a/ui/base/dragdrop/os_exchange_data_provider_gtk.h b/ui/base/dragdrop/os_exchange_data_provider_gtk.h
index 98cb739cf553ed5d28ff180dc939bb454b2752f5..8a72edd7d5859115735e477877f4143addbabf41 100644
--- a/ui/base/dragdrop/os_exchange_data_provider_gtk.h
+++ b/ui/base/dragdrop/os_exchange_data_provider_gtk.h
@@ -16,7 +16,7 @@
#include "base/string16.h"
#include "googleurl/src/gurl.h"
#include "ui/base/dragdrop/os_exchange_data.h"
-#include "ui/gfx/point.h"
+#include "ui/gfx/vector2d.h"
namespace ui {
@@ -85,9 +85,9 @@ class UI_EXPORT OSExchangeDataProviderGtk : public OSExchangeData::Provider {
// Set the image and cursor offset data for this drag. Will
// increment the ref count of pixbuf.
- void SetDragImage(GdkPixbuf* pixbuf, const gfx::Point& cursor_offset);
+ void SetDragImage(GdkPixbuf* pixbuf, const gfx::Vector2d& cursor_offset);
GdkPixbuf* drag_image() const { return drag_image_; }
- gfx::Point cursor_offset() const { return cursor_offset_; }
+ gfx::Vector2d cursor_offset() const { return cursor_offset_; }
private:
typedef std::map<OSExchangeData::CustomFormat, Pickle> PickleData;
@@ -121,7 +121,7 @@ class UI_EXPORT OSExchangeDataProviderGtk : public OSExchangeData::Provider {
// Drag image and offset data.
GdkPixbuf* drag_image_;
- gfx::Point cursor_offset_;
+ gfx::Vector2d cursor_offset_;
DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderGtk);
};

Powered by Google App Engine
This is Rietveld 408576698