AIR externs: Haxe 3 compatibility on :extern :enum abstracts
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package flash.desktop;
|
||||
|
||||
@:native("flash.desktop.InvokeEventReason")
|
||||
#if (haxe_ver >= 4.0) extern #else @:extern #end enum abstract InvokeEventReason(String)
|
||||
#if (haxe_ver >= 4.0) extern enum #else @:extern @:enum #end abstract InvokeEventReason(String)
|
||||
{
|
||||
var LOGIN;
|
||||
var NOTIFICATION;
|
||||
var OPEN_URL;
|
||||
var STANDARD;
|
||||
var LOGIN = "login";
|
||||
var NOTIFICATION = "notification";
|
||||
var OPEN_URL = "openUrl";
|
||||
var STANDARD = "standard";
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package flash.desktop;
|
||||
|
||||
@:native("flash.desktop.NativeDragActions")
|
||||
#if (haxe_ver >= 4.0) extern #else @:extern #end enum abstract NativeDragActions(String)
|
||||
#if (haxe_ver >= 4.0) extern enum #else @:extern @:enum #end abstract NativeDragActions(String)
|
||||
{
|
||||
var COPY;
|
||||
var LINK;
|
||||
var MOVE;
|
||||
var NONE;
|
||||
var COPY = "copy";
|
||||
var LINK = "link";
|
||||
var MOVE = "move";
|
||||
var NONE = "none";
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package flash.desktop;
|
||||
|
||||
@:native("flash.desktop.NotificationType")
|
||||
#if (haxe_ver >= 4.0) extern #else @:extern #end enum abstract NotificationType(String)
|
||||
#if (haxe_ver >= 4.0) extern enum #else @:extern @:enum #end abstract NotificationType(String)
|
||||
{
|
||||
var CRITICAL;
|
||||
var INFORMATIONAL;
|
||||
var CRITICAL = "critical";
|
||||
var INFORMATIONAL = "informational";
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package flash.desktop;
|
||||
|
||||
@:native("flash.desktop.SystemIdleMode")
|
||||
#if (haxe_ver >= 4.0) extern #else @:extern #end enum abstract SystemIdleMode(String)
|
||||
#if (haxe_ver >= 4.0) extern enum #else @:extern @:enum #end abstract SystemIdleMode(String)
|
||||
{
|
||||
var KEEP_AWAKE;
|
||||
var NORMAL;
|
||||
var KEEP_AWAKE = "keepAwake";
|
||||
var NORMAL = "normal";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user