Skip to content

Commit

Permalink
Update nameMap for new events
Browse files Browse the repository at this point in the history
  • Loading branch information
gernest committed Apr 15, 2018
1 parent 1523567 commit 5f529e0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
28 changes: 14 additions & 14 deletions event/event.gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ func AnimationStart(listener func(*vecty.Event)) *vecty.EventListener {
return &vecty.EventListener{Name: "animationstart", Listener: listener}
}

// Appinstalled is an event fired when a web application is successfully
// AppInstalled is an event fired when a web application is successfully
// installed as a progressive web app.
//
// https://developer.mozilla.org/docs/Web/Events/appinstalled
func Appinstalled(listener func(*vecty.Event)) *vecty.EventListener {
func AppInstalled(listener func(*vecty.Event)) *vecty.EventListener {
return &vecty.EventListener{Name: "appinstalled", Listener: listener}
}

Expand Down Expand Up @@ -251,6 +251,14 @@ func DOMContentLoaded(listener func(*vecty.Event)) *vecty.EventListener {
return &vecty.EventListener{Name: "DOMContentLoaded", Listener: listener}
}

// DeviceChange is an event fired when a media device such as a camera,
// microphone, or speaker is connected or removed from the system.
//
// https://developer.mozilla.org/docs/Web/Events/devicechange
func DeviceChange(listener func(*vecty.Event)) *vecty.EventListener {
return &vecty.EventListener{Name: "devicechange", Listener: listener}
}

// DeviceLight is an event fired when fresh data is available from a light
// sensor.
//
Expand Down Expand Up @@ -284,14 +292,6 @@ func DeviceProximity(listener func(*vecty.Event)) *vecty.EventListener {
return &vecty.EventListener{Name: "deviceproximity", Listener: listener}
}

// Devicechange is an event fired when a media device such as a camera,
// microphone, or speaker is connected or removed from the system.
//
// https://developer.mozilla.org/docs/Web/Events/devicechange
func Devicechange(listener func(*vecty.Event)) *vecty.EventListener {
return &vecty.EventListener{Name: "devicechange", Listener: listener}
}

// DischargingTimeChange is an event fired when the dischargingTime attribute
// has been updated.
//
Expand Down Expand Up @@ -600,11 +600,11 @@ func Message(listener func(*vecty.Event)) *vecty.EventListener {
return &vecty.EventListener{Name: "message", Listener: listener}
}

// Messageerror is an event fired when a message error is raised when a message
// MessageError is an event fired when a message error is raised when a message
// is received by an object.
//
// https://developer.mozilla.org/docs/Web/Events/messageerror
func Messageerror(listener func(*vecty.Event)) *vecty.EventListener {
func MessageError(listener func(*vecty.Event)) *vecty.EventListener {
return &vecty.EventListener{Name: "messageerror", Listener: listener}
}

Expand Down Expand Up @@ -1043,11 +1043,11 @@ func Show(listener func(*vecty.Event)) *vecty.EventListener {
return &vecty.EventListener{Name: "show", Listener: listener}
}

// Slotchange is an event fired when the node contents of a HTMLSlotElement
// SlotChange is an event fired when the node contents of a HTMLSlotElement
// (<slot>) have changed.
//
// https://developer.mozilla.org/docs/Web/Events/slotchange
func Slotchange(listener func(*vecty.Event)) *vecty.EventListener {
func SlotChange(listener func(*vecty.Event)) *vecty.EventListener {
return &vecty.EventListener{Name: "slotchange", Listener: listener}
}

Expand Down
4 changes: 4 additions & 0 deletions event/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func main() {
"animationend": "AnimationEnd",
"animationiteration": "AnimationIteration",
"animationstart": "AnimationStart",
"appinstalled": "AppInstalled",
"audioprocess": "AudioProcess",
"audioend": "AudioEnd",
"audiostart": "AudioStart",
Expand All @@ -45,6 +46,7 @@ func main() {
"compositionupdate": "CompositionUpdate",
"contextmenu": "ContextMenu",
"dblclick": "DoubleClick",
"devicechange": "DeviceChange",
"devicelight": "DeviceLight",
"devicemotion": "DeviceMotion",
"deviceorientation": "DeviceOrientation",
Expand Down Expand Up @@ -74,6 +76,7 @@ func main() {
"loadend": "LoadEnd",
"loadstart": "LoadStart",
"lostpointercapture": "LostPointerCapture",
"messageerror": "MessageError",
"mousedown": "MouseDown",
"mouseenter": "MouseEnter",
"mouseleave": "MouseLeave",
Expand Down Expand Up @@ -104,6 +107,7 @@ func main() {
"resourcetimingbufferfull": "ResourceTimingBufferFull",
"selectstart": "SelectStart",
"selectionchange": "SelectionChange",
"slotchange": "SlotChange",
"soundend": "SoundEnd",
"soundstart": "SoundStart",
"speechend": "SpeechEnd",
Expand Down

0 comments on commit 5f529e0

Please sign in to comment.