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

Unified Diff: third_party/WebKit/Source/core/clipboard/DataTransfer.h

Issue 2916043002: Move LocalFrame::DragImageForSelection DragController (Closed)
Patch Set: updated Created 3 years, 7 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: 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:

Powered by Google App Engine
This is Rietveld 408576698