Thanks for share it!! I will test 2011/5/20 Max Jonas Werner <[email protected]>
> Hi, > > (this is a re-post of my original posting to the GWT Contributors list. Due > to suspected lack of interest there I post it here now) > > I'm a huge fan of Web Notifications (or Desktop Notifications as called by > Webkit/Chrome, see http://www.w3.org/TR/notifications/) so I started to > hack away a very rudimentary implementation of them in GWT. My > implementation consists basically of four components: A Notification class > acting as a wrapper around a NativeNotification class which extends > JavaScriptObject. For handling the "display" event (which is called "show" > in the W3C spec) I created a class DisplayEvent extending > DomEvent<DisplayHandler>. > > For creating a Notification I borrowed the mechanism used in the > experimental Storage API of GWT 2.3: > > final Notification popup = Notification.createIfSupported("", "Title", > "Body"); > > This creates a Notification object wrapping a NativeNotification object. > Since I'm not THAT firm with DOM events and stuff I would like you to > comment on my implementation and if it is somewhat usable or leaking memory > or sth. > > The code is in prototype status and currently works in Chrome only. > > Please find attached my implementation. > > Cheers! > Max > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
