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

Unified Diff: third_party/WebKit/public/platform/WebDragData.h

Issue 1723763002: Add WebDragData to blink::WebView::dragtargetDrop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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/public/platform/WebDragData.h
diff --git a/third_party/WebKit/public/platform/WebDragData.h b/third_party/WebKit/public/platform/WebDragData.h
index dd3254a75d873cd50c3bd189765f15cabd23f638..f7ac3bee23faf245218aebccc5267fc18f6f1f35 100644
--- a/third_party/WebKit/public/platform/WebDragData.h
+++ b/third_party/WebKit/public/platform/WebDragData.h
@@ -86,11 +86,13 @@ public:
WebDragData()
: m_valid(false)
+ , m_canReadContent(true)
, m_modifierKeyState(0)
{ }
WebDragData(const WebDragData& object)
: m_valid(object.m_valid)
+ , m_canReadContent(object.m_canReadContent)
, m_itemList(object.m_itemList)
, m_modifierKeyState(object.m_modifierKeyState)
, m_filesystemId(object.m_filesystemId)
@@ -99,6 +101,7 @@ public:
WebDragData& operator=(const WebDragData& object)
{
m_valid = object.m_valid;
+ m_canReadContent = object.m_canReadContent;
m_itemList = object.m_itemList;
m_modifierKeyState = object.m_modifierKeyState;
m_filesystemId = object.m_filesystemId;
@@ -137,8 +140,16 @@ public:
m_filesystemId = filesystemId;
}
+ void setCanReadContent(bool canReadContent)
+ {
+ m_canReadContent = canReadContent;
+ }
+
+ bool canReadContent() const { return m_canReadContent; }
+
private:
bool m_valid;
+ bool m_canReadContent;
WebVector<Item> m_itemList;
int m_modifierKeyState; // State of Shift/Ctrl/Alt/Meta keys.
WebString m_filesystemId;

Powered by Google App Engine
This is Rietveld 408576698