Index: third_party/WebKit/Source/platform/DragImage.h |
diff --git a/third_party/WebKit/Source/platform/DragImage.h b/third_party/WebKit/Source/platform/DragImage.h |
index 64f458ae94f42721d07d8a36151f7d16cdb01b4d..9fd422c758cec7f39a006d5f0e99c59712e05ae1 100644 |
--- a/third_party/WebKit/Source/platform/DragImage.h |
+++ b/third_party/WebKit/Source/platform/DragImage.h |
@@ -34,6 +34,7 @@ |
#include "third_party/skia/include/core/SkBitmap.h" |
#include "wtf/Allocator.h" |
#include "wtf/Forward.h" |
+#include <memory> |
class SkImage; |
@@ -47,12 +48,12 @@ class PLATFORM_EXPORT DragImage { |
USING_FAST_MALLOC(DragImage); |
WTF_MAKE_NONCOPYABLE(DragImage); |
public: |
- static PassOwnPtr<DragImage> create(Image*, |
+ static std::unique_ptr<DragImage> create(Image*, |
RespectImageOrientationEnum = DoNotRespectImageOrientation, float deviceScaleFactor = 1, |
InterpolationQuality = InterpolationHigh, float opacity = 1, |
FloatSize imageScale = FloatSize(1, 1)); |
- static PassOwnPtr<DragImage> create(const KURL&, const String& label, const FontDescription& systemFont, float deviceScaleFactor); |
+ static std::unique_ptr<DragImage> create(const KURL&, const String& label, const FontDescription& systemFont, float deviceScaleFactor); |
~DragImage(); |
static FloatSize clampedImageScale(const IntSize&, const IntSize&, const IntSize& maxSize); |