diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/dom/HashChangeEvent.idl | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/dom/HashChangeEvent.idl')
-rw-r--r-- | Source/WebCore/dom/HashChangeEvent.idl | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/Source/WebCore/dom/HashChangeEvent.idl b/Source/WebCore/dom/HashChangeEvent.idl index 8674ffcd9..e72ff8d35 100644 --- a/Source/WebCore/dom/HashChangeEvent.idl +++ b/Source/WebCore/dom/HashChangeEvent.idl @@ -19,14 +19,20 @@ // Introduced in http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#event-hashchange [ - ConstructorTemplate=Event, + Constructor(DOMString type, optional HashChangeEventInit eventInitDict), ] interface HashChangeEvent : Event { - void initHashChangeEvent([Default=Undefined] optional DOMString type, - [Default=Undefined] optional boolean canBubble, - [Default=Undefined] optional boolean cancelable, - [Default=Undefined] optional DOMString oldURL, - [Default=Undefined] optional DOMString newURL); - [InitializedByEventConstructor] readonly attribute DOMString oldURL; - [InitializedByEventConstructor] readonly attribute DOMString newURL; + // FIXME: Using "undefined" as default parameter value is wrong. + void initHashChangeEvent(optional DOMString type = "undefined", + optional boolean canBubble = false, + optional boolean cancelable = false, + optional USVString oldURL = "undefined", + optional USVString newURL = "undefined"); + + readonly attribute USVString oldURL; + readonly attribute USVString newURL; }; +dictionary HashChangeEventInit : EventInit { + USVString oldURL = ""; + USVString newURL = ""; +}; |