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

Unified Diff: trunk/Source/core/page/DragData.h

Issue 211853002: Revert 169711 "Prevent web content from forging File entries in ..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 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
« no previous file with comments | « trunk/Source/core/page/DragController.cpp ('k') | trunk/Source/core/page/DragData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/page/DragData.h
===================================================================
--- trunk/Source/core/page/DragData.h (revision 169978)
+++ trunk/Source/core/page/DragData.h (working copy)
@@ -51,7 +51,6 @@
class DragData {
public:
- // ConvertFilenames is only intended to be used when treating drags as a navigation action.
enum FilenameConversionPolicy { DoNotConvertFilenames, ConvertFilenames };
// clientPosition is taken to be the position of the drag event within the target window, with (0,0) at the top left
@@ -62,10 +61,10 @@
DragApplicationFlags flags() const { return m_applicationFlags; }
DataObject* platformData() const { return m_platformDragData; }
DragOperation draggingSourceOperationMask() const { return m_draggingSourceOperationMask; }
- bool containsURL(FilenameConversionPolicy filenamePolicy = DoNotConvertFilenames) const;
+ bool containsURL(FilenameConversionPolicy filenamePolicy = ConvertFilenames) const;
bool containsPlainText() const;
bool containsCompatibleContent() const;
- String asURL(FilenameConversionPolicy filenamePolicy = DoNotConvertFilenames, String* title = 0) const;
+ String asURL(FilenameConversionPolicy filenamePolicy = ConvertFilenames, String* title = 0) const;
String asPlainText() const;
void asFilenames(Vector<String>&) const;
PassRefPtr<DocumentFragment> asFragment(LocalFrame*, PassRefPtr<Range> context, bool allowPlainText, bool& chosePlainText) const;
« no previous file with comments | « trunk/Source/core/page/DragController.cpp ('k') | trunk/Source/core/page/DragData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698