Chromium Code Reviews| Index: third_party/WebKit/Source/core/clipboard/DataTransfer.h |
| diff --git a/third_party/WebKit/Source/core/clipboard/DataTransfer.h b/third_party/WebKit/Source/core/clipboard/DataTransfer.h |
| index e9f8cced8d5746ed6b1e10bde1ffab7eae1a889a..398322a1d0050be4e1468f10bb6f2b151091d445 100644 |
| --- a/third_party/WebKit/Source/core/clipboard/DataTransfer.h |
| +++ b/third_party/WebKit/Source/core/clipboard/DataTransfer.h |
| @@ -44,6 +44,8 @@ class FileList; |
| class FrameSelection; |
| class LocalFrame; |
| class Node; |
| +class PaintRecordBuilder; |
| +class PropertyTreeState; |
| // Used for drag and drop and copy/paste. |
| // Drag and Drop: |
| @@ -101,6 +103,7 @@ class CORE_EXPORT DataTransfer final |
| void SetDragImageResource(ImageResourceContent*, const IntPoint&); |
| void SetDragImageElement(Node*, const IntPoint&); |
| + static std::unique_ptr<DragImage> NodeImage(const LocalFrame&, Node&); |
|
Xiaocheng
2017/06/02 18:26:47
Please group all the static functions together.
|
| std::unique_ptr<DragImage> CreateDragImage(IntPoint& drag_location, |
| LocalFrame*) const; |
| void DeclareAndWriteDragImage(Element*, |
| @@ -132,6 +135,14 @@ class CORE_EXPORT DataTransfer final |
| DataObject* GetDataObject() const; |
| + static FloatRect DeviceSpaceBounds(const FloatRect, const LocalFrame&); |
| + static std::unique_ptr<DragImage> CreateDragImage(const LocalFrame&, |
| + float, |
| + RespectImageOrientationEnum, |
| + const FloatRect&, |
| + PaintRecordBuilder&, |
| + const PropertyTreeState&); |
| + |
| DECLARE_TRACE(); |
| private: |