Skip to content

Commit e8dd56b

Browse files
author
Francisco Ryan Tolmasky I
committed
Added HTML 5 drag and drop support for WebKit/Safari.
Reviewed by me.
1 parent 0c9f247 commit e8dd56b

10 files changed

Lines changed: 437 additions & 171 deletions

File tree

‎AppKit/CPCompatibility.j‎

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,18 @@ CPCSSRGBAFeature = 1 << 5;
3535

3636
CPHTMLCanvasFeature = 1 << 6;
3737
CPHTMLContentEditableFeature = 1 << 7;
38+
CPHTMLDragAndDropFeature = 1 << 8;
3839

39-
CPJavascriptInnerTextFeature = 1 << 8;
40-
CPJavascriptTextContentFeature = 1 << 9;
41-
CPJavascriptClipboardEventsFeature = 1 << 10;
42-
CPJavascriptClipboardAccessFeature = 1 << 11;
43-
CPJavaScriptCanvasDrawFeature = 1 << 12;
44-
CPJavaScriptCanvasTransformFeature = 1 << 13;
40+
CPJavascriptInnerTextFeature = 1 << 9;
41+
CPJavascriptTextContentFeature = 1 << 10;
42+
CPJavascriptClipboardEventsFeature = 1 << 11;
43+
CPJavascriptClipboardAccessFeature = 1 << 12;
44+
CPJavaScriptCanvasDrawFeature = 1 << 13;
45+
CPJavaScriptCanvasTransformFeature = 1 << 14;
4546

46-
CPVMLFeature = 1 << 14;
47+
CPVMLFeature = 1 << 15;
4748

48-
CPJavascriptRemedialKeySupport = 1 << 15;
49+
CPJavascriptRemedialKeySupport = 1 << 16;
4950
CPJavaScriptShadowFeature = 1 << 20;
5051

5152
CPJavaScriptNegativeMouseWheelValues = 1 << 22;
@@ -54,7 +55,8 @@ CPJavaScriptMouseWheelValues_8_15 = 1 << 23
5455
CPOpacityRequiresFilterFeature = 1 << 24;
5556

5657
//Internet explorer does not allow dynamically changing the type of an input element
57-
CPInputTypeCanBeChangedFeature = 1 << 25;
58+
CPInputTypeCanBeChangedFeature = 1 << 25;
59+
5860

5961

6062

@@ -100,6 +102,7 @@ else if (USER_AGENT.indexOf("AppleWebKit/") != -1)
100102
// Features we can only be sure of with WebKit (no known independent tests)
101103
PLATFORM_FEATURES |= CPCSSRGBAFeature;
102104
PLATFORM_FEATURES |= CPHTMLContentEditableFeature;
105+
PLATFORM_FEATURES |= CPHTMLDragAndDropFeature;
103106
PLATFORM_FEATURES |= CPJavascriptClipboardEventsFeature;
104107
PLATFORM_FEATURES |= CPJavascriptClipboardAccessFeature;
105108
PLATFORM_FEATURES |= CPJavaScriptShadowFeature;

0 commit comments

Comments
 (0)