示例#1
0
        public static Ty create_event <Ty>(EventName eventName, EventInit eventInit) where Ty : Event
        {/* Docs: https://dom.spec.whatwg.org/#concept-event-create */
            Ty @event = inner_create_event <Ty>(eventName, Window.getTimestamp(), eventInit);

            @event.isTrusted = true;
            return(@event);
        }
示例#2
0
        public Event(string type = "", EventInit init = null)
        {
            this.type = type;
            if (init == null)
                init = new EventInit();

            bubbles = init.bubbles;
            cancelable = init.cancelable;

            this.isTrusted = false;
            this.eventPhase = EventPhase.NONE;
            this.target = null;
            this.timeStamp = (long)(DateTime.Now - new DateTime(1970, 1, 1, 0, 0, 0)).TotalMilliseconds;
        }
示例#3
0
        public Event(string type = "", EventInit init = null)
        {
            this.type = type;
            if (init == null)
            {
                init = new EventInit();
            }

            bubbles    = init.bubbles;
            cancelable = init.cancelable;

            this.isTrusted  = false;
            this.eventPhase = EventPhase.NONE;
            this.target     = null;
            this.timeStamp  = (long)(DateTime.Now - new DateTime(1970, 1, 1, 0, 0, 0)).TotalMilliseconds;
        }
示例#4
0
文件: Event.cs 项目: GavinHwa/Bridge
 public Event(string type, EventInit eventInit)
 {
 }
示例#5
0
 public Event(string type, EventInit eventInit)
 {
 }
 public Event(string typeArg, EventInit eventInitDict)
 {
 }